feat: require an api key to schedule
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user