You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

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)
}