mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0.git
synced 2026-08-19 04:23:55 +00:00
Laravel Vapor - Fix error 404 files
This commit is contained in:
+1
-1
@@ -13,7 +13,7 @@
|
||||
<link rel="apple-touch-icon" sizes="180x180" href="{{ asset('images/favicon/apple-touch-icon.png') }}">
|
||||
<link rel="icon" type="image/png" sizes="32x32" href="{{ asset('images/favicon/favicon-32x32.png') }}">
|
||||
<link rel="icon" type="image/png" sizes="16x16" href="{{ asset('images/favicon/favicon-16x16.png') }}">
|
||||
<link rel="manifest" href="{{ asset('images/favicon/site.webmanifest') }}">
|
||||
<link rel="manifest" href="/site.webmanifest">
|
||||
<meta name="msapplication-TileColor" content="#ffffff">
|
||||
<meta name="theme-color" content="#ffffff">
|
||||
<meta name="csrf-token" content="{{ csrf_token() }}">
|
||||
|
||||
@@ -1246,3 +1246,13 @@ Route::get('/downloads', function () {
|
||||
return view('pages.downloads.index');
|
||||
})->name('admin.download');
|
||||
|
||||
Route::get('/site.webmanifest', function () {
|
||||
$filePath = resource_path('assets/images/favicon/site.webmanifest');
|
||||
|
||||
if (!File::exists($filePath)) {
|
||||
abort(404);
|
||||
}
|
||||
|
||||
$contents = File::get($filePath);
|
||||
return response($contents, 200)->header('Content-Type', 'application/manifest+json');
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user