Complete port of all 163 API endpoints from Lucee/CFML to PHP 8.3. Shared helpers in api/helpers.php (DB, auth, request/response, security). PDO prepared statements throughout. Same JSON response shapes as CFML.
47 lines
1.4 KiB
PHP
47 lines
1.4 KiB
PHP
<?php
|
|
require_once __DIR__ . '/../helpers.php';
|
|
runAuth();
|
|
|
|
$features = [
|
|
[
|
|
'ICON' => 'qr_code_scanner',
|
|
'TITLE' => 'Scan & Order',
|
|
'DESCRIPTION' => 'Your phone automatically finds your table location, browse the menu and order directly from your phone',
|
|
],
|
|
[
|
|
'ICON' => 'group',
|
|
'TITLE' => 'Group Orders',
|
|
'DESCRIPTION' => 'Separate checks for everyone, no more confusion about the bill',
|
|
],
|
|
[
|
|
'ICON' => 'delivery_dining',
|
|
'TITLE' => 'Delivery & Takeaway',
|
|
'DESCRIPTION' => 'Order for delivery or pick up when dining in isn\'t an option (coming soon!)',
|
|
],
|
|
[
|
|
'ICON' => 'payment',
|
|
'TITLE' => 'Easy Payment',
|
|
'DESCRIPTION' => 'Easily pay on your phone with just a few taps, no more awkward check danses with staff!',
|
|
],
|
|
];
|
|
|
|
$contacts = [
|
|
[
|
|
'ICON' => 'help_outline',
|
|
'LABEL' => 'help.payfrit.com',
|
|
'URL' => 'https://help.payfrit.com',
|
|
],
|
|
[
|
|
'ICON' => 'language',
|
|
'LABEL' => 'www.payfrit.com',
|
|
'URL' => 'https://www.payfrit.com',
|
|
],
|
|
];
|
|
|
|
jsonResponse([
|
|
'OK' => true,
|
|
'DESCRIPTION' => 'Payfrit makes dining out easier. Order from your phone, separate checks for everyone, and pay without waiting.',
|
|
'FEATURES' => $features,
|
|
'CONTACTS' => $contacts,
|
|
'COPYRIGHT' => '© ' . gmdate('Y') . ' Payfrit. All rights reserved.',
|
|
]);
|