forked from TrueCloudLab/frostfs-http-gw
update to new router
This commit is contained in:
parent
164b0870de
commit
ea4710eaba
4 changed files with 20 additions and 4 deletions
2
app.go
2
app.go
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue