feat: able to manage system vai access token (close #12)

This commit is contained in:
JustSong
2023-04-26 20:54:39 +08:00
parent f62a671fbe
commit 8c305dc1bc
5 changed files with 92 additions and 7 deletions

View File

@@ -35,6 +35,7 @@ func SetApiRouter(router *gin.Engine) {
selfRoute.GET("/self", controller.GetSelf)
selfRoute.PUT("/self", controller.UpdateSelf)
selfRoute.DELETE("/self", controller.DeleteSelf)
selfRoute.GET("/token", controller.GenerateAccessToken)
}
adminRoute := userRoute.Group("/")