more fixes

This commit is contained in:
Colin Henry 2019-11-06 19:45:49 -08:00
parent 3e56170c99
commit 4697006d10
2 changed files with 4 additions and 4 deletions

View File

@ -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 == "" {

View File

@ -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 == "" {