feat: require an api key to schedule

This commit is contained in:
2026-06-08 15:54:05 +01:00
parent a0bff2beb1
commit 458b7897dd
5 changed files with 53 additions and 3 deletions
+2
View File
@@ -16,6 +16,8 @@ if ($_SERVER['REQUEST_METHOD'] !== 'POST') {
// }
try {
require_api_key();
$body = json_body();
$customBody = trim((string) ($body['message'] ?? ''));
$templateId = isset($body['template_id']) ? (int) $body['template_id'] : null;