feat: driver manage api

This commit is contained in:
Noah Hsu
2022-06-26 20:25:02 +08:00
parent 3349982312
commit b98cd915a4
5 changed files with 44 additions and 0 deletions

View File

@ -36,6 +36,11 @@ func Init(r *gin.Engine) {
account.POST("/create", controllers.CreateAccount)
account.POST("/update", controllers.UpdateAccount)
account.POST("/delete", controllers.DeleteAccount)
driver := admin.Group("/driver")
driver.GET("/list", controllers.ListDriverItems)
driver.GET("/names", controllers.ListDriverNames)
driver.GET("/items", controllers.GetDriverItems)
}
func Cors(r *gin.Engine) {