新增 user/me 接口

This commit is contained in:
2022-11-24 11:05:42 +08:00
parent b924e94c63
commit dad0f34764
2 changed files with 5 additions and 0 deletions

View File

@@ -13,6 +13,8 @@ func Setup(engine *gin.Engine) {
hub := service.ExUserService
// 测试方法获取signed jwt
user.POST("/login", app.HandlerFunc(hub.Login))
user.Use(middleware.JWT(1))
user.GET("/me", app.HandlerFunc(hub.Me))
}
checkin := engine.Group("/checkin")
{