Skip to content

Commit 6a36515

Browse files
committed
New API BREAKING update:
- REMOVED /api/certcount/ : not used - REMOVED WEBHOOK_URL in config.php : we will use notifications instead - ADDED NOTIFICATIONS_ENDPOINT in config.php : API now sends events to this external endpoint for faster processing and more scalable changes - ADDED SHOW_API_HELP in config.php : if api documentation should be shown on /api/ - ADDED api doc on /api/ : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | RELEASE
1 parent de16d4a commit 6a36515

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

website/api/config.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@
33
define('MIN_PERCENTAGE', 80);
44
define('MAX_PERCENTAGE', 100);
55
define('MAX_REQUESTS_PER_MINUTE', 3);
6-
//notifications, only for downcert rn
7-
define('DISCORD_WEBHOOK_URL', 'WBK_URL');
6+
7+
//notifications, leave empty to disable
8+
define('NOTIFICATIONS_ENDPOINT', 'NOTIFICATIONS_ENDPOINT_HERE');
89

910
// database configuration
1011
define('DB_HOST', 'localhost');
@@ -23,6 +24,9 @@
2324
//maintenance toggle and lastest update pwd
2425
define('ETC_PWD', 'etcpwd');
2526

27+
// define if help page should be displayed on /api/ or not
28+
define('SHOW_API_HELP', true);
29+
2630
//certificate questions
2731
$questions = [
2832
[

0 commit comments

Comments
 (0)