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

Changed download URL for MetaGer Maps

parent 2cf6e53b
No related branches found
No related tags found
1 merge request!1461Development
...@@ -219,13 +219,7 @@ Route::group( ...@@ -219,13 +219,7 @@ Route::group(
return redirect("https://gitlab.metager.de/open-source/app-en/raw/latest/app/release/app-release.apk?inline=false"); return redirect("https://gitlab.metager.de/open-source/app-en/raw/latest/app/release/app-release.apk?inline=false");
}); });
Route::get('maps', function () { Route::get('maps', function () {
$filePath = env('maps_app'); return redirect("https://gitlab.metager.de/open-source/metager-maps-android/raw/latest/app/release/app-release.apk?inline=false");
$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 () {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment