mirror of
https://github.com/andwati/telecom-platform.git
synced 2026-11-26 13:58:49 +00:00
refactor: Simplify profile handler function names by removing WithRepo suffix
- Rename ListProfilesHandlerWithRepo to ListProfilesHandler - Rename GetProfileHandlerWithRepo to GetProfileHandler - Rename DeleteProfileHandlerWithRepo to DeleteProfileHandler
This commit is contained in:
@@ -25,9 +25,9 @@ func setupRoutes(router *gin.Engine, client *es2.ES2Client, repo repository.Prof
|
|||||||
esim := api.Group("/esim")
|
esim := api.Group("/esim")
|
||||||
{
|
{
|
||||||
esim.POST("/profiles", handler.OrderProfileHandlerWithRepo(client, repo, webhookClient, messageQueue))
|
esim.POST("/profiles", handler.OrderProfileHandlerWithRepo(client, repo, webhookClient, messageQueue))
|
||||||
esim.GET("/profiles", handler.ListProfilesHandlerWithRepo(repo))
|
esim.GET("/profiles", handler.ListProfilesHandler(repo))
|
||||||
esim.GET("/profiles/:profileId", handler.GetProfileHandlerWithRepo(client, repo))
|
esim.GET("/profiles/:profileId", handler.GetProfileHandler(repo))
|
||||||
esim.DELETE("/profiles/:profileId", handler.DeleteProfileHandlerWithRepo(client, repo, webhookClient, messageQueue))
|
esim.DELETE("/profiles/:profileId", handler.DeleteProfileHandler(repo))
|
||||||
}
|
}
|
||||||
|
|
||||||
carrier := api.Group("/carrier")
|
carrier := api.Group("/carrier")
|
||||||
|
|||||||
Reference in New Issue
Block a user