aboutsummaryrefslogtreecommitdiffstats
path: root/web/web.go
diff options
context:
space:
mode:
Diffstat (limited to 'web/web.go')
-rw-r--r--web/web.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/web/web.go b/web/web.go
index 551354a..02cbead 100644
--- a/web/web.go
+++ b/web/web.go
@@ -148,6 +148,9 @@ func Serve() {
staticFileServer := http.StripPrefix("/static/", http.FileServer(box.HTTPBox()))
http.Handle("/static/", staticFileServer)
+ // New Frontend
+ http.Handle("/v2/", http.StripPrefix("/v2/", http.HandlerFunc(ServeFrontend)))
+
// New REST API
apiRouter := api.NewRouter()
http.Handle("/api/", http.StripPrefix("/api", AuthWrapHandler(apiRouter)))