Export custom static folder

This commit is contained in:
naiba committed 2023-11-29 17:13:45 +08:00
1 parent a823da1f29
commit ad99a5d032
4 files changed
+4 -4

No files matched your search

+1
View File
@@ -43,6 +43,7 @@ func ServeWeb(port uint) *http.Server {
panic(err)
}
r.StaticFS("/static", http.FS(staticFs))
r.Static("/static-custom", "resource/static/custom")
routers(r)
page404 := func(c *gin.Context) {