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)
|
2023-04-27 17:36:07 +08:00
|
|
|
g.POST("", app.WineApi().Add)
|
|
|
|
g.PUT("", app.WineApi().Update)
|
|
|
|
g.DELETE("", app.WineApi().Delete)
|
2023-04-27 15:56:12 +08:00
|
|
|
}
|