Disable static file directory listing
Fixes #28 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
f1b20edbe3
commit
f839444d3b
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue