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
|
@ -65,6 +65,6 @@
|
|||
<script src="js/angular-resource.min.js"></script>
|
||||
<script src="js/angular-route.min.js"></script>
|
||||
<script src="js/angular-sanitize.min.js"></script>
|
||||
<script src="js/adlin.js"></script>
|
||||
<script src="js/adlin-dashboard.js"></script>
|
||||
</body>
|
||||
</html>
|
|
@ -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