mirror of
https://gitlab.com/mbugroup/lti-api.git
synced 2026-05-20 13:31:56 +00:00
feat(BE): finance (payment, initial_balance, injection). fix(BE): kandang capacity
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
package payments
|
||||
|
||||
import (
|
||||
// m "gitlab.com/mbugroup/lti-api.git/internal/middleware"
|
||||
controller "gitlab.com/mbugroup/lti-api.git/internal/modules/finance/payments/controllers"
|
||||
payment "gitlab.com/mbugroup/lti-api.git/internal/modules/finance/payments/services"
|
||||
user "gitlab.com/mbugroup/lti-api.git/internal/modules/users/services"
|
||||
|
||||
"github.com/gofiber/fiber/v2"
|
||||
)
|
||||
|
||||
func PaymentRoutes(v1 fiber.Router, u user.UserService, s payment.PaymentService) {
|
||||
ctrl := controller.NewPaymentController(s)
|
||||
|
||||
route := v1.Group("/payments")
|
||||
// route.Use(m.Auth(u))
|
||||
|
||||
route.Post("/", ctrl.CreateOne)
|
||||
route.Get("/:id", ctrl.GetOne)
|
||||
route.Patch("/:id", ctrl.UpdateOne)
|
||||
}
|
||||
Reference in New Issue
Block a user