Skip to content

Commit

Permalink
controller: SuperAdminController: Add API point to invalidate all stamps
Browse files Browse the repository at this point in the history
Signed-off-by: Shashank Verma <[email protected]>
  • Loading branch information
shank03 committed Oct 31, 2023
1 parent d98f1e2 commit eafe345
Showing 1 changed file with 18 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -110,4 +110,22 @@ class SuperAdminController(
ResponseStamp.ADMIN
}
.wrapError()

@PostMapping("/invalidate_stamps")
@Operation(summary = "Invalidate all variants of stamps")
fun invalidateStamp(): Mono<ResponseEntity<Void>> = pathAuthorization
.superAdminAuthorization()
.flatMap { Mono.just(it).then() }
.invalidateStamp {
ResponseStamp.NONE.invalidateStamp()
ResponseStamp.ADMIN.invalidateStamp()
ResponseStamp.CHANNEL.invalidateStamp()
ResponseStamp.CLUB.invalidateStamp()
ResponseStamp.MEMBER.invalidateStamp()
ResponseStamp.POST.invalidateStamp()
ResponseStamp.REPLY.invalidateStamp()
ResponseStamp.URL.invalidateStamp()
ResponseStamp.USER
}
.wrapError()
}

0 comments on commit eafe345

Please sign in to comment.