Skip to content
This repository has been archived by the owner on Feb 28, 2023. It is now read-only.

Commit

Permalink
chore: Remove some unused GET method API
Browse files Browse the repository at this point in the history
Signed-off-by: qwqcode <[email protected]>
  • Loading branch information
qwqcode committed Jun 8, 2022
1 parent 4e2f78e commit af132d0
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions http/a_router.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,7 @@ func InitRouter(e *echo.Echo) {
api.POST("/add", action.Add)
api.POST("/get", action.Get)
api.POST("/user-get", action.UserGet)
api.GET("/login", action.Login)
api.POST("/login", action.Login)
api.GET("/login-status", action.LoginStatus)
api.POST("/login-status", action.LoginStatus)
api.POST("/mark-read", action.MarkRead)
api.POST("/vote", action.Vote)
Expand All @@ -52,13 +50,10 @@ func InitRouter(e *echo.Echo) {
// api/captcha
if config.Instance.Captcha.Enabled {
ca := api.Group("/captcha")
ca.GET("/refresh", action.CaptchaGet)
ca.POST("/refresh", action.CaptchaGet)
ca.GET("/get", action.CaptchaGet)
ca.POST("/get", action.CaptchaGet)
ca.GET("/check", action.CaptchaCheck)
ca.POST("/check", action.CaptchaCheck)
ca.GET("/status", action.CaptchaStatus)
ca.POST("/status", action.CaptchaStatus)
}

Expand Down

0 comments on commit af132d0

Please sign in to comment.