glopes vor 1 Monat
Ursprung
Commit
8cff48cede
1 geänderte Dateien mit 4 neuen und 27 gelöschten Zeilen
  1. 4 27
      public/index.php

+ 4 - 27
public/index.php

@@ -27,41 +27,18 @@ $app->get('/', function () {
     );
 });
 
-$app->post('/edi', function ($request) {
+$app->post('/genial/cashin', function ($request) {
     $body = (string) $request->getBody();
-    writeLog('edi', $body);
+    writeLog('/genial/cashin', $body);
     return new Response(200, ['Content-Type' => 'application/json'], json_encode(['status' => 'success']));
 });
 
-$app->post('/qrcode/cash-in', function ($request) {
+$app->post('/genial/cashout', function ($request) {
     $body = (string) $request->getBody();
-    writeLog('qrcode:cash-in', $body);
+    writeLog('/genial/cashout', $body);
     return new Response(200, ['Content-Type' => 'application/json'], json_encode(['status' => 'success']));
 });
 
-$app->post('/cash-in', function ($request) {
-    $body = (string) $request->getBody();
-    writeLog('cash-in', $body);
-    return new Response(200, ['Content-Type' => 'application/json'], json_encode(['status' => 'success']));
-});
-
-$app->post('/cash-out', function ($request) {
-    $body = (string) $request->getBody();
-    writeLog('cash-out', $body);
-    return new Response(200, ['Content-Type' => 'application/json'], json_encode(['status' => 'success']));
-});
-
-$app->post('/refunds', function ($request) {
-    $body = (string) $request->getBody();
-    writeLog('refunds', $body);
-    return new Response(200, ['Content-Type' => 'application/json'], json_encode(['status' => 'success']));
-});
-
-$app->post('/ted', function ($request) {
-    $body = (string) $request->getBody();
-    writeLog('ted', $body);
-    return new Response(200, ['Content-Type' => 'application/json'], json_encode(['status' => 'success']));
-});
 
 $app->post('/{webhook}', function ($request, string $webhook) {
     $body = (string) $request->getBody();