From fe5f06662168e29b3033475feb1c5fd99e6a06cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20Schw=C3=B6rer?= Date: Sat, 3 Feb 2018 14:42:51 +0100 Subject: [PATCH] update via webhook --- www/index.php | 1 + www/pages/api_webhook.php | 28 ++++++++++++++++++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 www/pages/api_webhook.php diff --git a/www/index.php b/www/index.php index 9c36fbd..298ac39 100644 --- a/www/index.php +++ b/www/index.php @@ -40,6 +40,7 @@ $URL_RULES = [ 'url' => ['api', 'test'], 'target' => 'pages/api_test.php', 'options' => [ '_opt' => 'http', ], ], [ 'url' => ['api', 'setselfadress'], 'target' => 'pages/api_setselfadress.php', 'options' => [ '_opt' => 'http', ], ], [ 'url' => ['api', 'statsping'], 'target' => 'pages/api_stats.php', 'options' => [ '_opt' => 'http', 'Name' => '%GET%', 'ClientID' => '%GET%', 'Version' => '%GET%', 'ProviderStr' => '%GET%', 'ProviderID' => '%GET%', 'NoteCount' => '%GET%', ], ], + [ 'url' => ['api', 'webhook', '${target}'], 'target' => 'pages/api_webhook.php', 'options' => [ '_opt' => 'http', 'target' => '%URL%', 'secret' => '%GET%', ],], [ 'url' => ['admin'], 'target' => 'pages/admin.php', 'options' => [ '_opt' => 'password'], ], [ 'url' => ['admin', 'cmd', '?{cmd}'], 'target' => 'pages/admin_cmd.php', 'options' => [ '_opt' => 'password', 'cmd' => '%URL%'], ], diff --git a/www/pages/api_webhook.php b/www/pages/api_webhook.php new file mode 100644 index 0000000..6cbcc59 --- /dev/null +++ b/www/pages/api_webhook.php @@ -0,0 +1,28 @@ +