You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
491 B
17 lines
491 B
package api
|
|
|
|
import (
|
|
"github.com/dustinpianalto/quartermaster/internal/utils"
|
|
"github.com/dustinpianalto/quartermaster/pkg/api/locations"
|
|
"github.com/dustinpianalto/quartermaster/pkg/api/users"
|
|
"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())
|
|
return router
|
|
}
|