Major changes - Ready app for initial testings

This commit is contained in:
Miguel Nogueira
2018-06-07 15:40:52 +00:00
parent 7403097008
commit 29735c60bb
3 changed files with 76 additions and 6 deletions

View File

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