more fixes
This commit is contained in:
parent
3e56170c99
commit
4697006d10
@ -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 == "" {
|
||||
|
@ -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 == "" {
|
||||
|
Loading…
Reference in New Issue
Block a user