TP-55555/error consumer

This commit is contained in:
varnit-goyal_navi
2024-08-16 06:26:21 +05:30
parent 18b42972a6
commit 4a1328b051
6 changed files with 61 additions and 21 deletions

View File

@@ -8,8 +8,8 @@ import (
func ExceptionRouter(r *gin.Engine, dep *dependencies.Dependencies) {
exceptionHandler := handler.NewExceptionHandler(dep.Service.ExceptionService)
exceptionRouterGroup := r.Group("/api/v1")
exceptionRouterGroup := r.Group("/api")
{
exceptionRouterGroup.POST("/catch-errors", exceptionHandler.CatchErrors)
exceptionRouterGroup.POST("/:projectId/envelope", exceptionHandler.CatchErrors)
}
}