mirror of
https://github.com/andwati/telecom-platform.git
synced 2026-11-25 21:38:48 +00:00
feat: Add comprehensive routing for rate plans, pricing, currency, tenants, SMDP, and selection endpoints
- Add db parameter to setupRoutes function signature and pass from main.go - Add rate plan routes with CRUD, search, subscription, and management endpoints using RatePlanAdapter - Add pricing routes with rule management endpoints using PricingService - Add currency routes with conversion, exchange rates, billing operations, and analytics placeholder endpoints - Add tenant routes with management
This commit is contained in:
@@ -111,7 +111,7 @@ func main() {
|
||||
// Create repository for MVNO operations
|
||||
repo := repository.NewGormRepository(db, logger)
|
||||
|
||||
setupRoutes(router, client, profileRepo, webhookClient, messageQueue, repo, logger)
|
||||
setupRoutes(router, client, profileRepo, webhookClient, messageQueue, repo, db, logger)
|
||||
|
||||
handler.Logger.Info().Str("port", port).Msg("Carrier Connector API server starting")
|
||||
if err := router.Run(":" + port); err != nil {
|
||||
|
||||
Reference in New Issue
Block a user