feat: account manage api

This commit is contained in:
Noah Hsu
2022-06-26 20:00:36 +08:00
parent cab498e376
commit 5783aa99f1
4 changed files with 110 additions and 7 deletions

View File

@ -30,6 +30,12 @@ func Init(r *gin.Engine) {
user.POST("/create", controllers.CreateUser)
user.POST("/update", controllers.UpdateUser)
user.POST("/delete", controllers.DeleteUser)
account := admin.Group("/account")
account.GET("/list", controllers.ListAccounts)
account.POST("/create", controllers.CreateAccount)
account.POST("/update", controllers.UpdateAccount)
account.POST("/delete", controllers.DeleteAccount)
}
func Cors(r *gin.Engine) {