forked from ebhomengo/niki
16 lines
406 B
Go
16 lines
406 B
Go
|
package benefactorkindboxhandler
|
||
|
|
||
|
import (
|
||
|
"github.com/labstack/echo/v4"
|
||
|
)
|
||
|
|
||
|
func (h Handler) SetRoutes(e *echo.Echo) {
|
||
|
r := e.Group("/benefactor/kindboxes")
|
||
|
|
||
|
r.POST("/").Name = "benefactor-addkindbox"
|
||
|
r.GET("/:id").Name = "benefactor-getkindboxbyid"
|
||
|
r.GET("/").Name = "benefactor-getallkindbox"
|
||
|
r.PUT("/:id").Name = "benefactor-updatekindbox"
|
||
|
// r.DELETE("/:id").Name = "benefactor-deletekindbox"
|
||
|
}
|