token-validator: move dashboard into dashboard directory
This commit is contained in:
parent
ab40917285
commit
9cb1ad6e97
3 changed files with 8 additions and 1 deletions
|
|
@ -19,6 +19,13 @@ func init() {
|
|||
w.Write(data)
|
||||
}
|
||||
})
|
||||
Router().GET("/dashboard/", func(w http.ResponseWriter, r *http.Request, ps httprouter.Params) {
|
||||
if data, err := Asset("htdocs/dashboard.html"); err != nil {
|
||||
fmt.Fprintf(w, "{\"errmsg\":%q}", err)
|
||||
} else {
|
||||
w.Write(data)
|
||||
}
|
||||
})
|
||||
|
||||
Router().GET("/css/*_", func(w http.ResponseWriter, r *http.Request, ps httprouter.Params) {
|
||||
w.Header().Set("Content-Type", "text/css")
|
||||
|
|
|
|||
Reference in a new issue