feat: Remove MVNO router and add placeholder endpoints to main routes

- Delete router.go with Router struct, NewRouter constructor, SetupRoutes, SetupMiddleware, HealthCheck, and RegisterHealthCheck methods
- Add /mvno route group with POST /onboarding, GET /, GET /:id, PUT /:id/status, and GET /stats placeholder endpoints
- Replace router-based MVNO setup with direct route registration returning http.StatusNotImplemented responses
This commit is contained in:
nutcas3
2026-05-03 09:52:50 +03:00
parent 88fd53a37d
commit bc5ead59c6
2 changed files with 21 additions and 94 deletions
+21
View File
@@ -35,6 +35,27 @@ func setupRoutes(router *gin.Engine, client *es2.ES2Client, repo repository.Prof
carrier.GET("/info", handler.GetCarrierInfoHandler(client))
carrier.GET("/connectivity", handler.CheckConnectivityHandler(client))
}
// MVNO routes
mvno := api.Group("/mvno")
{
// Note: These will be implemented with proper service initialization
mvno.POST("/onboarding", func(c *gin.Context) {
c.JSON(http.StatusNotImplemented, gin.H{"error": "MVNO onboarding endpoint - to be implemented"})
})
mvno.GET("", func(c *gin.Context) {
c.JSON(http.StatusNotImplemented, gin.H{"error": "MVNO list endpoint - to be implemented"})
})
mvno.GET("/:id", func(c *gin.Context) {
c.JSON(http.StatusNotImplemented, gin.H{"error": "MVNO get endpoint - to be implemented"})
})
mvno.PUT("/:id/status", func(c *gin.Context) {
c.JSON(http.StatusNotImplemented, gin.H{"error": "MVNO status update endpoint - to be implemented"})
})
mvno.GET("/stats", func(c *gin.Context) {
c.JSON(http.StatusNotImplemented, gin.H{"error": "MVNO stats endpoint - to be implemented"})
})
}
}
// healthHandler returns a simple liveness response.