Skip to content

Commit

Permalink
fix for #346 add dev telemetry route
Browse files Browse the repository at this point in the history
  • Loading branch information
ddvk committed Dec 15, 2024
1 parent 7dd4e8c commit 349dd90
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
8 changes: 4 additions & 4 deletions internal/app/handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -1114,10 +1114,10 @@ func (app *App) syncReports(c *gin.Context) {
}

func (app *App) nullReport(c *gin.Context) {
_, err := io.ReadAll(c.Request.Body)
if err != nil {
log.Warn("could not read report data")
}
// _, err := io.ReadAll(c.Request.Body)
// if err != nil {
// log.Warn("could not read report data")
// }
c.Status(http.StatusOK)
}

Expand Down
1 change: 1 addition & 0 deletions internal/app/routes.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ func (app *App) registerRoutes(router *gin.Engine) {
router.POST("/v1/reports", app.nullReport)
router.POST("/v2/reports", app.nullReport)
router.POST("/report/v1", app.nullReport)
router.POST("/v2/events", app.nullReport)

//routes needing api authentitcation
authRoutes := router.Group("/")
Expand Down

0 comments on commit 349dd90

Please sign in to comment.