fix(pwa): resolve HEAD HTTP method 404 warning and add narrow mobile screenshot to manifest
This commit is contained in:
parent
0eaf05956e
commit
49267e65ec
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
|
|||
BIN
public/assets/img/screenshot-narrow.png
Normal file
BIN
public/assets/img/screenshot-narrow.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 18 KiB |
Loading…
Reference in New Issue
Block a user