datamodel done without validators
This commit is contained in:
11
wagfarm-api/assets/pesticide/route.go
Normal file
11
wagfarm-api/assets/pesticide/route.go
Normal file
@@ -0,0 +1,11 @@
|
||||
package pesticide
|
||||
|
||||
import (
|
||||
"wagfarm-api/generic"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
func RegisterRoutes(rg *gin.RouterGroup) {
|
||||
generic.RegisterCRUDRoutes(rg.Group("/pesticide"), generic.DefaultCRUDController[Pesticide]())
|
||||
}
|
||||
Reference in New Issue
Block a user