Browse Source

Fix example app

I guess I forgot to test it after changing it to an Insert()
Carl Jackson 12 years ago
parent
commit
bc7d07dec0
1 changed files with 1 additions and 4 deletions
  1. +1
    -4
      example/main.go

+ 1
- 4
example/main.go View File

@ -42,10 +42,7 @@ func main() {
// Goji's interfaces are completely composable.
admin := web.New()
goji.Sub("/admin", admin)
// Insert the super-secure middleware into the stack above the built-in
// AutomaticOptions middleware.
admin.Insert("SuperSecure", SuperSecure, "AutomaticOptions")
admin.Use("SuperSecure", SuperSecure)
// Set up admin routes. Note that sub-routes do *not* mutate the path in
// any way, so we need to supply full ("/admin" prefixed) paths.


Loading…
Cancel
Save