14 lines
248 B
Go
14 lines
248 B
Go
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)
|
|
}
|