datamodel done without validators
This commit is contained in:
28
wagfarm-api/logs/logs.go
Normal file
28
wagfarm-api/logs/logs.go
Normal file
@@ -0,0 +1,28 @@
|
||||
package logs
|
||||
|
||||
import (
|
||||
"wagfarm-api/logs/base"
|
||||
"wagfarm-api/logs/cropprotection"
|
||||
"wagfarm-api/logs/fertilizing"
|
||||
"wagfarm-api/logs/harvest"
|
||||
"wagfarm-api/logs/seeding"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
func RegisterModels() {
|
||||
base.RegisterModels()
|
||||
cropprotection.RegisterModels()
|
||||
fertilizing.RegisterModels()
|
||||
harvest.RegisterModels()
|
||||
seeding.RegisterModels()
|
||||
}
|
||||
|
||||
func RegisterRoutes(rg *gin.RouterGroup) {
|
||||
group := rg.Group("/logs")
|
||||
base.RegisterRoutes(group)
|
||||
cropprotection.RegisterRoutes(group)
|
||||
fertilizing.RegisterRoutes(group)
|
||||
harvest.RegisterRoutes(group)
|
||||
seeding.RegisterRoutes(group)
|
||||
}
|
||||
Reference in New Issue
Block a user