Skip to content

Commit

Permalink
Merge pull request #55 from KjellBerlin/slack-webhook-String-body
Browse files Browse the repository at this point in the history
Slack webhook String request body
  • Loading branch information
KjellBerlin authored Aug 9, 2024
2 parents e28464c + a51f84c commit 03e6761
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package com.carbonara.core.delivery

import com.carbonara.core.order.OrderService
import com.fasterxml.jackson.databind.JsonNode
import mu.KotlinLogging
import org.springframework.web.bind.annotation.PostMapping
import org.springframework.web.bind.annotation.RestController
Expand All @@ -14,9 +13,9 @@ class SlackDeliveryWebhookController(
// Potential dos attack endpoint, introduce rate limiting

@PostMapping("/slack-delivery-status", "application/x-www-form-urlencoded")
suspend fun handleMollieWebhook(requestBody: JsonNode) {
suspend fun handleMollieWebhook(requestBody: String) {
log.info("--Start Slack--")
log.info(requestBody.toString())
log.info(requestBody)
log.info("--End Slack--")

}
Expand Down

0 comments on commit 03e6761

Please sign in to comment.