Skip to content
Snippets Groups Projects
Commit 819a44c6 authored by Dominik Hebeler's avatar Dominik Hebeler
Browse files

Update web.php

parent 6456b0fc
No related branches found
No related tags found
3 merge requests!1146WIP: Resolve "gelöschte suchfoki verschwinden erst nach reload",!1140Development,!1139Resolve "MetaGer Maps App Download Link funktioniert nicht."
......@@ -180,6 +180,16 @@ Route::group(
$filePath = storage_path() . "/app/public/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 () {
$filePath = env('maps_version');
$fileContents = file_get_contents($filePath);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment