Use mount but not register for chi routes (#13555)
* Use mount but not register for chi routes * Fix test * Fix test * Fix test * Fix comment * turn back unnecessary change * Remove the timout middleware since some operations may spend much time.
This commit is contained in:
parent
8c2b5feeae
commit
586bfb9f32
6 changed files with 32 additions and 16 deletions
|
@ -165,9 +165,10 @@ func runWeb(ctx *cli.Context) error {
|
|||
return err
|
||||
}
|
||||
}
|
||||
// Set up Macaron
|
||||
// Set up Chi routes
|
||||
c := routes.NewChi()
|
||||
routes.RegisterRoutes(c)
|
||||
c.Mount("/", routes.NormalRoutes())
|
||||
routes.DelegateToMacaron(c)
|
||||
|
||||
err := listen(c, true)
|
||||
<-graceful.GetManager().Done()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue