Allow POST PayU return endpoints
All checks were successful
build-and-deploy / build-deploy (push) Successful in 36s

This commit is contained in:
androidlover5842
2026-01-30 08:43:56 +05:30
parent 9b3c8bf258
commit 238b4f39f3
2 changed files with 14 additions and 1 deletions

View File

@@ -3,6 +3,7 @@ package com.android.trisolarisserver.controller
import org.springframework.http.HttpStatus
import org.springframework.web.bind.annotation.GetMapping
import org.springframework.web.bind.annotation.PathVariable
import org.springframework.web.bind.annotation.PostMapping
import org.springframework.web.bind.annotation.RequestMapping
import org.springframework.web.bind.annotation.ResponseStatus
import org.springframework.web.bind.annotation.RestController
@@ -18,9 +19,21 @@ class PayuReturnController {
// PayU redirect target; no-op.
}
@PostMapping("/success")
@ResponseStatus(HttpStatus.NO_CONTENT)
fun successPost(@PathVariable propertyId: UUID) {
// PayU redirect target; no-op.
}
@GetMapping("/failure")
@ResponseStatus(HttpStatus.NO_CONTENT)
fun failure(@PathVariable propertyId: UUID) {
// PayU redirect target; no-op.
}
@PostMapping("/failure")
@ResponseStatus(HttpStatus.NO_CONTENT)
fun failurePost(@PathVariable propertyId: UUID) {
// PayU redirect target; no-op.
}
}

View File

@@ -26,7 +26,7 @@ internal object PublicEndpoints {
|| (roomTypes.matches(path) && method == "GET")
|| roomTypeImages.matches(path)
|| (payuWebhook.matches(path) && method == "POST")
|| (payuReturn.matches(path) && method == "GET")
|| payuReturn.matches(path)
|| (path == "/image-tags" && method == "GET")
|| path == "/icons/png"
|| iconPngFile.matches(path)