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

This commit is contained in:
JustSong committed 2023-04-26 20:54:39 +08:00
1 parent 863d8424b3
commit 5a9fb6238b
5 files changed
+92 -7

No files matched your search

+1
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("/")