mirror of
https://github.com/sot-tech/mochi.git
synced 2026-05-12 22:58:36 -07:00
s/setupRoutes/NewRouter
This commit is contained in:
@@ -31,7 +31,7 @@ func setupTracker(cfg *config.Config) (*httptest.Server, error) {
|
||||
}
|
||||
|
||||
func createServer(tkr *Tracker, cfg *config.Config) (*httptest.Server, error) {
|
||||
return httptest.NewServer(setupRoutes(tkr, cfg)), nil
|
||||
return httptest.NewServer(NewRouter(tkr, cfg)), nil
|
||||
}
|
||||
|
||||
func announce(p params, srv *httptest.Server) ([]byte, error) {
|
||||
|
||||
Reference in New Issue
Block a user