public: can control up to 9 separate displays

This commit is contained in:
nemunaire 2017-12-18 00:30:23 +01:00
parent baf992bccb
commit bc9d27aa94
7 changed files with 31 additions and 19 deletions

View file

@ -19,7 +19,7 @@ func init() {
api.Router().GET("/events/*_", func(w http.ResponseWriter, r *http.Request, ps httprouter.Params) {
http.ServeFile(w, r, path.Join(StaticDir, "index.html"))
})
api.Router().GET("/public", func(w http.ResponseWriter, r *http.Request, ps httprouter.Params) {
api.Router().GET("/public/*_", func(w http.ResponseWriter, r *http.Request, ps httprouter.Params) {
http.ServeFile(w, r, path.Join(StaticDir, "index.html"))
})
api.Router().GET("/settings/*_", func(w http.ResponseWriter, r *http.Request, ps httprouter.Params) {