mirror of
https://gitlab.com/mbugroup/lti-api.git
synced 2026-05-20 13:31:56 +00:00
27 lines
876 B
Go
27 lines
876 B
Go
package closings
|
|
|
|
import (
|
|
// m "gitlab.com/mbugroup/lti-api.git/internal/middleware"
|
|
controller "gitlab.com/mbugroup/lti-api.git/internal/modules/closings/controllers"
|
|
closing "gitlab.com/mbugroup/lti-api.git/internal/modules/closings/services"
|
|
user "gitlab.com/mbugroup/lti-api.git/internal/modules/users/services"
|
|
|
|
"github.com/gofiber/fiber/v2"
|
|
)
|
|
|
|
func ClosingRoutes(v1 fiber.Router, u user.UserService, s closing.ClosingService) {
|
|
ctrl := controller.NewClosingController(s)
|
|
|
|
route := v1.Group("/closings")
|
|
|
|
// route.Get("/", m.Auth(u), ctrl.GetAll)
|
|
// route.Post("/", m.Auth(u), ctrl.CreateOne)
|
|
// route.Get("/:id", m.Auth(u), ctrl.GetOne)
|
|
// route.Patch("/:id", m.Auth(u), ctrl.UpdateOne)
|
|
// route.Delete("/:id", m.Auth(u), ctrl.DeleteOne)
|
|
|
|
route.Get("/", ctrl.GetAll)
|
|
route.Get("/sapronak/report", ctrl.GetSapronakReport)
|
|
route.Get("/:id", ctrl.GetOne)
|
|
}
|