diff options
Diffstat (limited to 'cmd/web.go')
-rw-r--r-- | cmd/web.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/cmd/web.go b/cmd/web.go index 15cec05b02..5af9ad9f2d 100644 --- a/cmd/web.go +++ b/cmd/web.go @@ -639,6 +639,9 @@ func runWeb(ctx *cli.Context) error { m.Get("/objects/:oid/:filename", lfs.ObjectOidHandler) m.Any("/objects/:oid", lfs.ObjectOidHandler) m.Post("/objects", lfs.PostHandler) + m.Any("/*", func(ctx *context.Context) { + ctx.Handle(404, "", nil) + }) }, ignSignInAndCsrf) m.Any("/*", ignSignInAndCsrf, repo.HTTP) m.Head("/tasks/trigger", repo.TriggerTask) |