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