RezinaLMS-BackEnd/internal/web_server/routes_integration.go

15 lines
482 B
Go

package httpserver
import (
"Rezina-Backend/internal/web_server/handlers"
"github.com/gofiber/fiber/v2"
)
func (a *App) initIntegrationRoutes(api fiber.Router, h *handlers.Handler) {
api.Post("/payments/webhook", h.HandleChapaWebhook)
api.Get("/payments/arifpay/success", h.HandleArifpaySuccessPage)
api.Get("/payments/chapa/success", h.HandleChapaSuccessPage)
api.Get("/payments/chapa/callback", h.HandleChapaCallback)
api.Get("/auth/google/callback", h.GoogleCallback)
}