Commit 57372dd7 authored by Dominik Hebeler's avatar Dominik Hebeler

Changed download URL for MetaGer Maps

parent 2cf6e53b
......@@ -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");
});
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");
return redirect("https://gitlab.metager.de/open-source/metager-maps-android/raw/latest/app/release/app-release.apk?inline=false");
});
Route::get('maps/version', function () {
......
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