Disable static file directory listing

Fixes #28
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Matthew Knight 2026-02-17 16:12:47 -08:00
parent f1b20edbe3
commit f839444d3b
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

@ -41,7 +41,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)