Allow POST PayU return endpoints
All checks were successful
build-and-deploy / build-deploy (push) Successful in 36s
All checks were successful
build-and-deploy / build-deploy (push) Successful in 36s
This commit is contained in:
@@ -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.
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user