Lee-WineList/router/wine.go

14 lines
248 B
Go
Raw Normal View History

2023-04-27 15:56:12 +08:00
package router
import (
"Lee-WineList/api/app"
"github.com/gin-gonic/gin"
)
func wine(g *gin.RouterGroup) {
g.GET("", app.WineApi().GetList)
g.POST("", app.WineApi().Add)
g.PUT("", app.WineApi().Update)
g.DELETE("", app.WineApi().Delete)
2023-04-27 15:56:12 +08:00
}