Commit ed8d6c4b authored by Dominik Hebeler's avatar Dominik Hebeler

Update web.php

parent 28116d93
...@@ -180,16 +180,6 @@ Route::group( ...@@ -180,16 +180,6 @@ Route::group(
$filePath = storage_path() . "/app/public/MetaGer-release.apk"; $filePath = storage_path() . "/app/public/MetaGer-release.apk";
return response()->download($filePath, "MetaGer-release.apk"); return response()->download($filePath, "MetaGer-release.apk");
}); });
Route::get('maps', function () {
$filePath = env('maps_app');
$fileContents = file_get_contents($filePath);
return response($fileContents, 200)
->header('Cache-Control', 'public')
->header('Content-Type', 'application/vnd.android.package-archive')
->header('Content-Transfer-Encoding', 'Binary')
->header("Content-Disposition", "attachment; filename=app-release.apk");
});
Route::get('maps/version', function () { Route::get('maps/version', function () {
$filePath = env('maps_version'); $filePath = env('maps_version');
$fileContents = file_get_contents($filePath); $fileContents = file_get_contents($filePath);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment