mirror of
https://gitlab.com/mbugroup/lti-api.git
synced 2026-05-20 13:31:56 +00:00
22 lines
696 B
Go
22 lines
696 B
Go
package transactions
|
|
|
|
import (
|
|
// m "gitlab.com/mbugroup/lti-api.git/internal/middleware"
|
|
controller "gitlab.com/mbugroup/lti-api.git/internal/modules/finance/transactions/controllers"
|
|
transaction "gitlab.com/mbugroup/lti-api.git/internal/modules/finance/transactions/services"
|
|
user "gitlab.com/mbugroup/lti-api.git/internal/modules/users/services"
|
|
|
|
"github.com/gofiber/fiber/v2"
|
|
)
|
|
|
|
func TransactionRoutes(v1 fiber.Router, u user.UserService, s transaction.TransactionService) {
|
|
ctrl := controller.NewTransactionController(s)
|
|
|
|
route := v1.Group("/transactions")
|
|
// route.Use(m.Auth(u))
|
|
|
|
route.Get("/", ctrl.GetAll)
|
|
route.Get("/:id", ctrl.GetOne)
|
|
route.Delete("/:id", ctrl.DeleteOne)
|
|
}
|