Remove GET for login route

This commit is contained in:
Jan Bader 2022-04-06 19:51:54 +00:00 committed by Gitea
parent 585951d5e2
commit 967f1c71e5

View File

@ -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)