/auth 在路由中已经写成了 POST 方法,但是 swagger 中显示的是 GET

Author: RussellCao824Created Jul 30, 2020Updated Jul 28, 2022

刚下载了代码,发现在swagger页面中调用/auth一直显示 404 page not found。 查看代码发现,在routers/router.go中,/auth路由定义的是POST方法,而swagger页面中显示的是GET方法。 image image 之后,我在postman中使用post方法,带参数请求/auth,还是显示 404 page not foundimage 请问一下,是我使用的姿势不对吗?感谢。