spacejewel-ipn-communication/public/index.php
Miguel Nogueira a7d53a2c16 Add run code
2018-06-08 14:48:18 +00:00

27 lines
579 B
PHP

<?php
require $_SERVER['DOCUMENT_ROOT'] . '/vendor/autoload.php';
$App = new \Slim\App([
"settings" =>
[
"displayErrorDetails" => true
]
]);
$App->post
(
"/api/paddle/{authkey}/detectIntent",
Hookmanager::class, ':detectPayloadIntent'
);
$App->post
(
"/api/paddle/{authkey}/hook",
Hookmanager::class, ':EventSubscriptionCreatead'
);
$App->run();