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.
15 lines
435 B
15 lines
435 B
package users
|
|
|
|
import (
|
|
"github.com/dustinpianalto/quartermaster/internal/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
|
|
}
|