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.
quartermaster/pkg/api/api.go

19 lines
593 B

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
}