dashboard: expose others screens
This commit is contained in:
parent
8abe57ffb6
commit
547184a40a
1 changed files with 5 additions and 0 deletions
|
@ -21,6 +21,11 @@ func init() {
|
||||||
api.Router().GET("/", func(w http.ResponseWriter, r *http.Request, ps httprouter.Params) {
|
api.Router().GET("/", func(w http.ResponseWriter, r *http.Request, ps httprouter.Params) {
|
||||||
http.ServeFile(w, r, path.Join(StaticDir, "index.html"))
|
http.ServeFile(w, r, path.Join(StaticDir, "index.html"))
|
||||||
})
|
})
|
||||||
|
for i := 0; i <= 9; i++ {
|
||||||
|
api.Router().GET(fmt.Sprintf("/public%d.html", i), func(w http.ResponseWriter, r *http.Request, ps httprouter.Params) {
|
||||||
|
http.ServeFile(w, r, path.Join(StaticDir, "index.html"))
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
api.Router().GET("/css/*_", func(w http.ResponseWriter, r *http.Request, ps httprouter.Params) {
|
api.Router().GET("/css/*_", func(w http.ResponseWriter, r *http.Request, ps httprouter.Params) {
|
||||||
http.ServeFile(w, r, path.Join(StaticDir, r.URL.Path))
|
http.ServeFile(w, r, path.Join(StaticDir, r.URL.Path))
|
||||||
|
|
Reference in a new issue