diff --git a/app/Config/Routes.php b/app/Config/Routes.php index 005bbfd..bc302dd 100644 --- a/app/Config/Routes.php +++ b/app/Config/Routes.php @@ -1568,10 +1568,10 @@ $routes->get('app/nursing', 'Api\v1\NursingApi::pwaIndex'); $routes->get('app/nursing/(:any)', 'Api\v1\NursingApi::pwaIndex'); $routes->get('app/doctor', 'Api\v1\DoctorApi::pwaIndex'); $routes->get('app/doctor/(:any)', 'Api\v1\DoctorApi::pwaIndex'); -$routes->get('app/queue', 'Api\v1\DoctorApi::queueIndex'); -$routes->get('app/queue/sw.js', 'Api\v1\DoctorApi::queueSw'); -$routes->get('app/queue/manifest.json', 'Api\v1\DoctorApi::queueManifest'); -$routes->get('app/queue/(:any)', 'Api\v1\DoctorApi::queueIndex'); +$routes->match(['get', 'head'], 'app/queue', 'Api\v1\DoctorApi::queueIndex'); +$routes->match(['get', 'head'], 'app/queue/sw.js', 'Api\v1\DoctorApi::queueSw'); +$routes->match(['get', 'head'], 'app/queue/manifest.json', 'Api\v1\DoctorApi::queueManifest'); +$routes->match(['get', 'head'], 'app/queue/(:any)', 'Api\v1\DoctorApi::queueIndex'); // Dedicated RESTful JSON API v1 Group for React PWAs & Mobile Apps $routes->group('api/v1', ['namespace' => 'App\Controllers\Api\v1'], static function ($routes) { diff --git a/public/App/Queue/manifest.json b/public/App/Queue/manifest.json index fdf3096..b9f4b7d 100644 --- a/public/App/Queue/manifest.json +++ b/public/App/Queue/manifest.json @@ -14,6 +14,13 @@ "orientation": "landscape", "categories": ["medical", "health", "utilities"], "prefer_related_applications": false, + "related_applications": [], + "scope_extensions": [], + "file_handlers": [], + "protocol_handlers": [], + "launch_handler": { + "client_mode": "focus-existing" + }, "icons": [ { "src": "/assets/img/pwa-icon-512.png", @@ -55,6 +62,13 @@ "type": "image/jpeg", "form_factor": "wide", "label": "OPD Token Tracker & Hospital Showcase TV Display" + }, + { + "src": "/assets/img/screenshot-narrow.png", + "sizes": "750x1334", + "type": "image/png", + "form_factor": "narrow", + "label": "HMS Queue Mobile View" } ] } diff --git a/public/assets/img/screenshot-narrow.png b/public/assets/img/screenshot-narrow.png new file mode 100644 index 0000000..f6d8aaf Binary files /dev/null and b/public/assets/img/screenshot-narrow.png differ