fmt
This commit is contained in:
@@ -3,8 +3,8 @@
|
|||||||
package api_auth
|
package api_auth
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
|
"fmt"
|
||||||
"net/http"
|
"net/http"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
@@ -48,7 +48,7 @@ func MustRoute(config *config.Config, authService *auth.Service) func(chi.Router
|
|||||||
|
|
||||||
r.Post("/register", h.handleRegister)
|
r.Post("/register", h.handleRegister)
|
||||||
r.Post("/login", h.handleLogin)
|
r.Post("/login", h.handleLogin)
|
||||||
r.Post("/logout", h.handleLogout) // !requires authentication
|
r.Post("/logout", h.handleLogout) // !requires authentication
|
||||||
r.Post("/refresh", h.handleRefresh) // !requires authentication
|
r.Post("/refresh", h.handleRefresh) // !requires authentication
|
||||||
|
|
||||||
r.Get("/me", h.handleMe) // !requires authentication
|
r.Get("/me", h.handleMe) // !requires authentication
|
||||||
|
|||||||
Reference in New Issue
Block a user