Remove GET for login route
This commit is contained in:
parent
585951d5e2
commit
967f1c71e5
@ -48,7 +48,6 @@ func (h *Handler) LoadRoutes(router *gin.Engine) {
|
|||||||
api := router.Group("/api/v1")
|
api := router.Group("/api/v1")
|
||||||
|
|
||||||
anonymous := api.Group("/user")
|
anonymous := api.Group("/user")
|
||||||
anonymous.GET("/login", func(c *gin.Context) { c.Redirect(http.StatusPermanentRedirect, "/login") })
|
|
||||||
anonymous.POST("/login", h.loginPost)
|
anonymous.POST("/login", h.loginPost)
|
||||||
anonymous.POST("/register", h.registerPost)
|
anonymous.POST("/register", h.registerPost)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user