file provider

This commit is contained in:
2026-03-01 20:31:31 +01:00
parent ea9643bcb2
commit 0285070c07
2 changed files with 27 additions and 0 deletions
+1
View File
@@ -59,6 +59,7 @@ func (r *Router) Init() *chi.Mux {
fs := http.FileServer(http.Dir("assets"))
router.Handle("/assets/*", http.StripPrefix("/assets/", fs))
router.Handle("/file", http.FileServer(http.Dir("/softwares")))
return router
}