diff options
| author | Adam Mathes <adam@adammathes.com> | 2026-02-14 14:46:37 -0800 |
|---|---|---|
| committer | Adam Mathes <adam@adammathes.com> | 2026-02-14 14:46:37 -0800 |
| commit | afa87af01c79a9baa539f2992d32154d2a4739bd (patch) | |
| tree | 92c7416db734270a2fee1d72ee9cc119379ff8e1 /web/web.go | |
| parent | 3b927e84d200402281f68181cd4253bc77e5528d (diff) | |
| download | neko-afa87af01c79a9baa539f2992d32154d2a4739bd.tar.gz neko-afa87af01c79a9baa539f2992d32154d2a4739bd.tar.bz2 neko-afa87af01c79a9baa539f2992d32154d2a4739bd.zip | |
task: delete vanilla js prototype\n\n- Removed vanilla/ directory and web/dist/vanilla directory\n- Updated Makefile, Dockerfile, and CI workflow to remove vanilla references\n- Cleaned up web/web.go to remove vanilla embed and routes\n- Verified build and tests pass\n\nCloses NK-2tcnmq
Diffstat (limited to 'web/web.go')
| -rw-r--r-- | web/web.go | 7 |
1 files changed, 0 insertions, 7 deletions
@@ -37,9 +37,6 @@ var ( //go:embed dist/v2/* frontendFiles embed.FS - - //go:embed dist/vanilla/* - vanillaFiles embed.FS ) // init is no longer strictly needed for finding boxes with embed, @@ -259,10 +256,6 @@ func NewRouter(cfg *config.Settings) http.Handler { // Wait, /api/stream -> StripPrefix -> /stream. apiServer handles /stream. Correct. mux.Handle("/api/", GzipMiddleware(http.StripPrefix("/api", AuthWrapHandler(apiServer)))) - // Vanilla JS Prototype from web/dist/vanilla - vanillaSub, _ := fs.Sub(vanillaFiles, "dist/vanilla") - mux.Handle("/vanilla/", GzipMiddleware(http.StripPrefix("/vanilla/", http.FileServer(http.FS(vanillaSub))))) - // Legacy routes for backward compatibility mux.HandleFunc("/stream/", AuthWrap(apiServer.HandleStream)) mux.HandleFunc("/item/", AuthWrap(apiServer.HandleItem)) |
