Fix tests with a proper start-up and shutdown procedure with a sync
This commit is contained in:
parent
179dd3f984
commit
d104c90445
4 changed files with 30 additions and 18 deletions
|
@ -5,14 +5,11 @@ import (
|
|||
"fmt"
|
||||
"net/http"
|
||||
|
||||
"github.com/gorilla/mux"
|
||||
"github.com/mdiluz/rove/pkg/accounts"
|
||||
)
|
||||
|
||||
// NewRouter sets up the server mux
|
||||
func (s *Server) SetUpRouter() {
|
||||
s.router = mux.NewRouter().StrictSlash(true)
|
||||
|
||||
// Set up the handlers
|
||||
s.router.HandleFunc("/status", s.HandleStatus)
|
||||
s.router.HandleFunc("/register", s.HandleRegister)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue