From 54071b5da46175ce7aeed04f9929e3269955dc4b Mon Sep 17 00:00:00 2001 From: Evgeniy Kulikov Date: Tue, 12 May 2020 11:18:23 +0300 Subject: [PATCH] routing: remove trailing slash --- app.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app.go b/app.go index 0434e0a..23d1860 100644 --- a/app.go +++ b/app.go @@ -179,7 +179,9 @@ func (a *app) Serve(ctx context.Context) { r := router.New() r.RedirectTrailingSlash = true - r.GET("/get/{cid}/{oid}/", a.receiveFile) + + a.log.Info("enabled /get/{cid}/{oid}") + r.GET("/get/{cid}/{oid}", a.receiveFile) // attaching /-/(ready,healthy) attachHealthy(r, a.pool.unhealthy)