routing: remove trailing slash

This commit is contained in:
Evgeniy Kulikov 2020-05-12 11:18:23 +03:00
parent 12a3801f3d
commit 54071b5da4
No known key found for this signature in database
GPG key ID: BF6AEE0A2A699BF2

4
app.go
View file

@ -179,7 +179,9 @@ func (a *app) Serve(ctx context.Context) {
r := router.New() r := router.New()
r.RedirectTrailingSlash = true 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) // attaching /-/(ready,healthy)
attachHealthy(r, a.pool.unhealthy) attachHealthy(r, a.pool.unhealthy)