2018-06-07 10:56:13 +00:00
|
|
|
<?php
|
|
|
|
|
2018-06-07 15:40:52 +00:00
|
|
|
require $_SERVER['DOCUMENT_ROOT'] . '/vendor/autoload.php';
|
2018-06-07 10:56:13 +00:00
|
|
|
|
2018-06-07 15:40:52 +00:00
|
|
|
$App = new \Slim\App([
|
|
|
|
"settings" =>
|
|
|
|
[
|
|
|
|
"displayErrorDetails" => true
|
|
|
|
]
|
|
|
|
]);
|
|
|
|
|
2018-06-07 10:56:13 +00:00
|
|
|
|
2018-06-07 15:40:52 +00:00
|
|
|
|
|
|
|
$App->post
|
|
|
|
(
|
|
|
|
"/api/paddle/{authkey}/detectIntent",
|
|
|
|
Hookmanager::class, ':detectPayloadIntent'
|
|
|
|
);
|
|
|
|
|
|
|
|
$App->post
|
|
|
|
(
|
|
|
|
"/api/paddle/{authkey}/hook",
|
|
|
|
Hookmanager::class, ':EventSubscriptionCreatead'
|
|
|
|
|
2018-06-08 14:48:18 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
$App->run();
|