From ba2e0240c60873679ebfce6fc7c961b0328f706b Mon Sep 17 00:00:00 2001 From: Lauris BH Date: Wed, 8 Nov 2017 15:04:19 +0200 Subject: 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 --- routers/routes/routes.go | 1 + 1 file changed, 1 insertion(+) (limited to 'routers') 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) }) -- cgit v1.2.3