docs path fix in serve

This commit is contained in:
2026-02-27 15:52:50 +01:00
parent f9cb923639
commit a11d98fb34
3 changed files with 12 additions and 4 deletions
+1
View File
@@ -47,6 +47,7 @@ func (r *Router) Init() *chi.Mux {
router.Get("/download/{name}/{version}/cartridge", r.downloadController.GetCartridge)
router.Get("/play/{name}/{version}", r.playController.Play)
router.Get("/play/{name}/{version}/content*", r.playController.ServeContent)
router.Get("/docs/{name}/{version}", r.docsController.ServeDocs)
router.Get("/docs/{name}/{version}/*", r.docsController.ServeDocs)
fs := http.FileServer(http.Dir("assets"))