routing: remove trailing slash
This commit is contained in:
parent
12a3801f3d
commit
54071b5da4
1 changed files with 3 additions and 1 deletions
4
app.go
4
app.go
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue