Add routers for tmp and cachefs

This commit is contained in:
Brahim Hadriche committed 2022-11-29 23:20:00 -05:00
1 parent a059702a0e
commit 78a7c937ae
1 file changed
+3 -1
@@ -41,7 +41,9 @@ function WebServerLoop()
m.server.UseRouter(new Http.InvidiousRouter())
m.server.UseRouter(new Http.HttpStaticFilesRouter("/", m.settings.WwwRoot))
#if WEB_SERVER_PACKAGE_DEBUG
m.server.UseRouter(new Http.HttpStaticFilesRouter("/debug", "pkg:/", true, true))
m.server.UseRouter(new Http.HttpStaticFilesRouter("/debug/pkg", "pkg:/", true, true))
m.server.UseRouter(new Http.HttpStaticFilesRouter("/debug/tmp", "tmp:/", true, true))
m.server.UseRouter(new Http.HttpStaticFilesRouter("/debug/cachefs", "cachefs:/", true, true))
#end if
#if WEB_SERVER_BASIC_AUTH
m.server.UseRouter(new Http.BasicAuthMiddleware())