Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
open-source
MetaGer
Commits
819a44c6
Commit
819a44c6
authored
Jan 20, 2018
by
Dominik Hebeler
Browse files
Update web.php
parent
6456b0fc
Changes
1
Hide whitespace changes
Inline
Side-by-side
routes/web.php
View file @
819a44c6
...
...
@@ -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
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment