Feat[BE}: inisiate repport module

This commit is contained in:
aguhh18
2025-12-10 08:23:52 +07:00
parent d7c543bc9d
commit 576f8083a3
7 changed files with 345 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
package repports
import (
controller "gitlab.com/mbugroup/lti-api.git/internal/modules/repports/controllers"
repport "gitlab.com/mbugroup/lti-api.git/internal/modules/repports/services"
"github.com/gofiber/fiber/v2"
)
func RepportRoutes(v1 fiber.Router, s repport.RepportService) {
ctrl := controller.NewRepportController(s)
route := v1.Group("/repports")
route.Get("/", ctrl.GetAll)
route.Post("/", ctrl.CreateOne)
route.Get("/:id", ctrl.GetOne)
route.Patch("/:id", ctrl.UpdateOne)
route.Delete("/:id", ctrl.DeleteOne)
}