diff options
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)) |
