ui-assets: Integrate UI assets.

This commit is contained in:
Harshavardhana
2016-02-04 16:00:52 -08:00
parent 53a983659e
commit a066184bed
7 changed files with 40 additions and 14 deletions

View File

@@ -75,8 +75,8 @@ func getWebAPIHandler(web *WebAPI) http.Handler {
root.Handle("/rpc", s)
// Enable this when we add assets.
// root.PathPrefix("/login").Handler(http.StripPrefix("/login", http.FileServer(assetFS())))
// root.Handle("/{file:.*}", http.FileServer(assetFS()))
root.PathPrefix("/login").Handler(http.StripPrefix("/login", http.FileServer(assetFS())))
root.Handle("/{file:.*}", http.FileServer(assetFS()))
return registerHandlers(mux, handlerFns...)
}