feat: added /auth/refresh route
This commit is contained in:
@@ -33,6 +33,7 @@ func NewMux(cfg Config) http.Handler {
|
|||||||
apiMux := http.NewServeMux()
|
apiMux := http.NewServeMux()
|
||||||
apiMux.HandleFunc("/", handler.DefaultHandler)
|
apiMux.HandleFunc("/", handler.DefaultHandler)
|
||||||
apiMux.HandleFunc("POST /login", authHandler.Login)
|
apiMux.HandleFunc("POST /login", authHandler.Login)
|
||||||
|
apiMux.HandleFunc("POST /auth/refresh", authHandler.Refresh)
|
||||||
|
|
||||||
apiMux.Handle("POST /users", protected(userHandler.CreateUser))
|
apiMux.Handle("POST /users", protected(userHandler.CreateUser))
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user