optimized user auth

This commit is contained in:
Marvin Zhang
2019-07-27 14:55:24 +08:00
parent 66a33e83ac
commit f804fa937e
2 changed files with 20 additions and 0 deletions

View File

@@ -128,6 +128,7 @@ func main() {
app.POST("/users/:id", routes.PostUser) // 更改用户
app.DELETE("/users/:id", routes.DeleteUser) // 删除用户
app.POST("/login", routes.Login) // 用户登录
app.GET("/me", routes.GetMe) // 获取自己账户
}
// 路由ping