aboutsummaryrefslogtreecommitdiffstats
path: root/web/web.go
diff options
context:
space:
mode:
authorAdam Mathes <adam@adammathes.com>2026-02-12 21:44:23 -0800
committerAdam Mathes <adam@adammathes.com>2026-02-12 21:44:23 -0800
commit9db2500fb340ef304c0f15f4379bc33589df9a63 (patch)
tree55495be30810f55aa1115ad2b392f97ce8650efb /web/web.go
parentde96851d8eb0a0b45d7bf0cee67339fea54349f0 (diff)
downloadneko-9db2500fb340ef304c0f15f4379bc33589df9a63.tar.gz
neko-9db2500fb340ef304c0f15f4379bc33589df9a63.tar.bz2
neko-9db2500fb340ef304c0f15f4379bc33589df9a63.zip
Scaffold new frontend and close NK-t0nmbj
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)))