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