Skip to content

Commit

Permalink
Merge pull request goadesign#58 from raphael/swagger
Browse files Browse the repository at this point in the history
Update AppEngine cellar example
  • Loading branch information
Raphaël Simon committed Nov 13, 2015
2 parents 27722d4 + bb480cc commit ece2bcb
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions examples/cellar/appengine.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ func init() {
log15.StreamHandler(os.Stderr, log15.LogfmtFormat()),
AppEngineLogHandler()),
)
api := controllers.New()
api.Use(AppEngineLogCtx())
api.Use(goa.CORS(corsPath, "*", "", "", "", "GET", ""))
controllers.Mount(api)
http.HandleFunc("/", api.ServeHTTP)
service := controllers.New()
service.Use(AppEngineLogCtx())
service.Use(goa.CORS(corsPath, "*", "", "", "", "GET", ""))
controllers.Mount(service)
http.HandleFunc("/", service.HTTPHandler().ServeHTTP)
}

// Format used for logging to AppEngine
Expand Down

0 comments on commit ece2bcb

Please sign in to comment.