summaryrefslogtreecommitdiffstats
path: root/routers/routes
diff options
context:
space:
mode:
authorLauris BH <lauris@nix.lv>2017-11-08 15:04:19 +0200
committerGitHub <noreply@github.com>2017-11-08 15:04:19 +0200
commitba2e0240c60873679ebfce6fc7c961b0328f706b (patch)
tree5cedd7b620bdf453cb4efe35642f726c9e43b707 /routers/routes
parent61f5c2250353d5a4e51f50e356e8d9f193c509fd (diff)
downloadgitea-ba2e0240c60873679ebfce6fc7c961b0328f706b.tar.gz
gitea-ba2e0240c60873679ebfce6fc7c961b0328f706b.zip
Add LFS object verification step after upload (#2868)
* Add LFS object verification step after upload * Fix file verification condition and small refactor * Fix URLs * Remove newline and return status 422 on failed verification * Better error hadling
Diffstat (limited to 'routers/routes')
-rw-r--r--routers/routes/routes.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/routers/routes/routes.go b/routers/routes/routes.go
index f1c9f18489..5a76dddb66 100644
--- a/routers/routes/routes.go
+++ b/routers/routes/routes.go
@@ -681,6 +681,7 @@ func RegisterRoutes(m *macaron.Macaron) {
m.Get("/objects/:oid/:filename", lfs.ObjectOidHandler)
m.Any("/objects/:oid", lfs.ObjectOidHandler)
m.Post("/objects", lfs.PostHandler)
+ m.Post("/verify", lfs.VerifyHandler)
m.Any("/*", func(ctx *context.Context) {
ctx.Handle(404, "", nil)
})