package api import ( "github.com/dustinpianalto/quartermaster/pkg/api/items" "github.com/dustinpianalto/quartermaster/pkg/api/locations" "github.com/dustinpianalto/quartermaster/pkg/api/users" "github.com/dustinpianalto/quartermaster/pkg/utils" "github.com/gorilla/mux" ) func GetRouter() *mux.Router { router := mux.NewRouter().StrictSlash(true) router.HandleFunc("/healthcheck", healthcheck).Methods("GET") utils.Mount(router, "/users", users.GetRouter()) utils.Mount(router, "/locations", locations.GetRouter()) utils.Mount(router, "/items", items.GetRouter()) return router }