Merge pull request 'Disable static file directory listing' (#51) from fix/static-dir-listing into main

Reviewed-on: https://git.ts.mattnite.net/mattnite/forgejo-tickets/pulls/51
This commit is contained in:
Matthew Knight 2026-02-18 00:28:19 +00:00
commit 731a928316
1 changed files with 1 additions and 1 deletions

View File

@ -42,7 +42,7 @@ func NewRouter(deps Dependencies) *gin.Engine {
c.String(http.StatusOK, "ok")
})
r.Static("/static", "web/static")
r.StaticFS("/static", gin.Dir("web/static", false))
webhookHandler := &WebhookHandler{deps: deps}
r.POST("/webhooks/forgejo/:repoSlug", webhookHandler.HandleForgejoWebhook)