diff --git a/cmd/auth-demo/main.go b/cmd/auth-demo/main.go index d05c5b7..f04bbe3 100644 --- a/cmd/auth-demo/main.go +++ b/cmd/auth-demo/main.go @@ -16,10 +16,10 @@ func main() { func StartServer() { auth.PrintConfig() - s := jch_http.NewServer(negroni.New(), jch_http.NewRouter()). + s := jch_http.NewServer(negroni.New(), jch_http.NewJulienschmidtHTTPRouter()). Static("/public/*filepath", http.Dir("public/")). Service("", auth.Service(auth.FromEnv())). - GET("/", "", http.HandlerFunc(HomeHandler)) + Get("/", "", http.HandlerFunc(HomeHandler)) port := os.Getenv("PORT") if port == "" { diff --git a/cmd/sub-demo/main.go b/cmd/sub-demo/main.go index bdfe667..7e21472 100644 --- a/cmd/sub-demo/main.go +++ b/cmd/sub-demo/main.go @@ -20,11 +20,11 @@ func StartServer() { payments.PrintConfig() auth_service := auth.Service(auth.FromEnv()) - s := jch_http.NewServer(negroni.New(), jch_http.NewRouter()). + s := jch_http.NewServer(negroni.New(), jch_http.NewJulienschmidtHTTPRouter()). Static("/public/*filepath", http.Dir("public/")). Service("", auth_service). Service("", payments.Service(payments.FromEnv(), &auth_service)). - GET("/", "", http.HandlerFunc(HomeHandler)) + Get("/", "", http.HandlerFunc(HomeHandler)) port := os.Getenv("PORT") if port == "" {