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/users/router.go

15 lines
430 B

package users
import (
"github.com/dustinpianalto/quartermaster/pkg/utils"
"github.com/gorilla/mux"
)
func GetRouter() *mux.Router {
router := mux.NewRouter().StrictSlash(true)
router.Handle("/login", utils.RootHandler(loginHandler)).Methods("POST")
router.Handle("/register", utils.RootHandler(registerHandler)).Methods("POST")
router.Handle("/refresh", utils.RootHandler(refreshHandler)).Methods("GET")
return router
}