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

13 lines
256 B

package api
import (
"github.com/gorilla/mux"
)
func GetRouter() *mux.Router {
router := mux.NewRouter().StrictSlash(true)
router.HandleFunc("/", homePage).Methods("GET")
router.HandleFunc("/healthcheck", healthcheck).Methods("GET")
return router
}