Fix tests with a proper start-up and shutdown procedure with a sync

This commit is contained in:
Marc Di Luzio 2020-05-31 19:48:43 +01:00
parent 179dd3f984
commit d104c90445
4 changed files with 30 additions and 18 deletions

View file

@ -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)