GetConfig takes whole controller now, not a string

Craig Peterson 2016-06-20 15:54:29 -06:00
parent c59470ba71
commit b460fd2248

@ -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: