From dc81f64d6eb23e701196c9336cd3e62844c77e0e Mon Sep 17 00:00:00 2001 From: matze Date: Thu, 10 Apr 2025 17:33:53 +0200 Subject: [PATCH] Update wagfarm-api/routes/log/harvest.go --- wagfarm-api/routes/log/harvest.go | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/wagfarm-api/routes/log/harvest.go b/wagfarm-api/routes/log/harvest.go index 4701df2..77afb44 100644 --- a/wagfarm-api/routes/log/harvest.go +++ b/wagfarm-api/routes/log/harvest.go @@ -6,12 +6,18 @@ import ( "github.com/gin-gonic/gin" ) -func RegisterHarvestRoutes(router *gin.Engine, path string) { +func RegisterHarvestRoutes(router *gin.Engine) { db := database.DB - router.GET(path+"/harvest", func(c *gin.Context) { + router.GET("/harvest", func(c *gin.Context) { }) - router.POST(path+"/harvest", func(c *gin.Context) { + router.POST("/harvest", func(c *gin.Context) { + }) + router.PUT("/harvest", func(c *gin.Context) { + + }) + router.DELELTE("/harvest", func(c *gin.Context) { + }) }