Skip to content

Commit

Permalink
chore: Update get-push-tokens endpoint to require authentication
Browse files Browse the repository at this point in the history
  • Loading branch information
waveyboym committed Jul 21, 2024
1 parent 6107fc3 commit abc9613
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion occupi-backend/pkg/router/router.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ func OccupiRouter(router *gin.Engine, appsession *models.AppSession) {
api.GET("/user-details", middleware.ProtectedRoute, func(ctx *gin.Context) { handlers.GetUserDetails(ctx, appsession) })
api.POST("/update-user", middleware.ProtectedRoute, func(ctx *gin.Context) { handlers.UpdateUserDetails(ctx, appsession) })
api.GET("/get-users", middleware.ProtectedRoute, middleware.AdminRoute, func(ctx *gin.Context) { handlers.FilterCollection(ctx, appsession, "Users") })
api.GET("/get-push-tokens", middleware.UnProtectedRoute, func(ctx *gin.Context) { handlers.GetPushTokens(ctx, appsession) })
api.GET("/get-push-tokens", middleware.ProtectedRoute, func(ctx *gin.Context) { handlers.GetPushTokens(ctx, appsession) })
api.GET("/get-notifications", middleware.ProtectedRoute, func(ctx *gin.Context) { handlers.FilterCollection(ctx, appsession, "Notifications") })
api.POST("/update-security-settings", middleware.ProtectedRoute, func(ctx *gin.Context) { handlers.UpdateSecuritySettings(ctx, appsession) })
api.GET("/update-notification-settings", middleware.ProtectedRoute, func(ctx *gin.Context) { handlers.UpdateNotificationSettings(ctx, appsession) })
Expand Down

0 comments on commit abc9613

Please sign in to comment.