meetandeat/controller/api/main.go

20 lines
324 B
Go
Raw Permalink Normal View History

2019-03-22 16:35:16 +01:00
package api
import (
"github.com/gin-gonic/gin"
)
func Bind(r *gin.RouterGroup) {
r.GET("/date", getDateAll)
r.POST("/date", addDate)
r.GET("/date/:id", getDate)
r.POST("/date/:id/meet", addDateMeet)
r.GET("/job", getJobAll)
r.POST("/job", addJob)
r.GET("/person", getPersonAll)
r.POST("/person", addPerson)
}