feat: static files for embed viewers (#2739)

This commit is contained in:
BoYanZh
2022-12-19 13:34:06 +08:00
committed by GitHub
parent 4568af9542
commit e2bcca2fbd
3 changed files with 5 additions and 2 deletions

View File

@ -17,7 +17,7 @@ func StoragesLoaded(c *gin.Context) {
c.Next()
return
}
paths := []string{"/assets", "/images", "/streamer"}
paths := []string{"/assets", "/images", "/streamer", "/static"}
for _, path := range paths {
if strings.HasPrefix(c.Request.URL.Path, path) {
c.Next()