feat: static files for embed viewers (#2739)
This commit is contained in:
@ -64,7 +64,7 @@ func UpdateIndex() {
|
||||
|
||||
func Static(r *gin.Engine) {
|
||||
InitIndex()
|
||||
folders := []string{"assets", "images", "streamer"}
|
||||
folders := []string{"assets", "images", "streamer", "static"}
|
||||
r.Use(func(c *gin.Context) {
|
||||
for i := range folders {
|
||||
if strings.HasPrefix(c.Request.RequestURI, fmt.Sprintf("/%s/", folders[i])) {
|
||||
|
Reference in New Issue
Block a user