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:
commit
731a928316
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue