From b460fd2248540f6a2242c9ef047a8bb75c77f200 Mon Sep 17 00:00:00 2001 From: Craig Peterson Date: Mon, 20 Jun 2016 15:54:29 -0600 Subject: [PATCH] GetConfig takes whole controller now, not a string --- Converting-Add-ons-to-Plugins.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Converting-Add-ons-to-Plugins.md b/Converting-Add-ons-to-Plugins.md index 0357b97..9c7ba61 100644 --- a/Converting-Add-ons-to-Plugins.md +++ b/Converting-Add-ons-to-Plugins.md @@ -54,7 +54,7 @@ The setup function does not need to be exported, but you may capitalize it to ex Instead of accessing site config values directly like `c.Root` or `c.Host`, get the config from the HTTP server using the key from the controller: ```go -siteConfig := httpserver.GetConfig(c.Key) +siteConfig := httpserver.GetConfig(c) ``` Instead of adding startup callbacks by appending to `c.Startup` , call `c.OnStartup()` and pass in the function: