update to new router

This commit is contained in:
Evgeniy Kulikov 2020-04-15 11:10:42 +03:00
parent 164b0870de
commit ea4710eaba
No known key found for this signature in database
GPG key ID: BF6AEE0A2A699BF2
4 changed files with 20 additions and 4 deletions

2
app.go
View file

@ -179,7 +179,7 @@ func (a *app) Serve(ctx context.Context) {
r := router.New()
r.RedirectTrailingSlash = true
r.GET("/get/:cid/:oid/", a.receiveFile)
r.GET("/get/{cid}/{oid}/", a.receiveFile)
// attaching /-/(ready,healthy)
attachHealthy(r, a.pool.unhealthy)