Add PayU webhook capture per property
Some checks failed
build-and-deploy / build-deploy (push) Failing after 29s

This commit is contained in:
androidlover5842
2026-01-30 05:48:09 +05:30
parent e5c2abc317
commit 4168835d47
5 changed files with 130 additions and 0 deletions

View File

@@ -10,6 +10,7 @@ internal object PublicEndpoints {
private val roomTypes = Regex("^/properties/[^/]+/room-types$")
private val roomTypeImages = Regex("^/properties/[^/]+/room-types/[^/]+/images$")
private val iconPngFile = Regex("^/icons/png/[^/]+$")
private val payuWebhook = Regex("^/properties/[^/]+/payu/webhook$")
fun isPublic(request: HttpServletRequest): Boolean {
val path = request.requestURI
@@ -23,6 +24,7 @@ internal object PublicEndpoints {
|| (roomsByType.matches(path) && method == "GET")
|| (roomTypes.matches(path) && method == "GET")
|| roomTypeImages.matches(path)
|| (payuWebhook.matches(path) && method == "POST")
|| (path == "/image-tags" && method == "GET")
|| path == "/icons/png"
|| iconPngFile.matches(path)