Now both index.html and landing.html can be changes for specific (#224)
playgrounds. By default they will be served from `www/default` if no override has been specified
This commit is contained in:
committed by
Marcos Nils
parent
f277e3776c
commit
65b8364ef2
@@ -66,9 +66,7 @@ func Register(extend HandlerExtender) {
|
||||
r.Handle("/metrics", promhttp.Handler())
|
||||
|
||||
// Generic routes
|
||||
r.HandleFunc("/", func(rw http.ResponseWriter, r *http.Request) {
|
||||
http.ServeFile(rw, r, "./www/landing.html")
|
||||
}).Methods("GET")
|
||||
r.HandleFunc("/", Landing).Methods("GET")
|
||||
|
||||
corsRouter.HandleFunc("/users/me", LoggedInUser).Methods("GET")
|
||||
r.HandleFunc("/users/{userId:^(?me)}", GetUser).Methods("GET")
|
||||
|
||||
Reference in New Issue
Block a user