Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
Open sidebar
Tim Visée
barbapappa
Commits
f0e687ea
Verified
Commit
f0e687ea
authored
Oct 21, 2020
by
Tim Visée
☕
Browse files
Serve actual raw LICENSE file when viewing raw license
parent
7198c019
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
664 deletions
+8
-664
webapp/app/Http/Controllers/PagesController.php
webapp/app/Http/Controllers/PagesController.php
+2
-3
webapp/resources/views/pages/includes/raw/license.php
webapp/resources/views/pages/includes/raw/license.php
+0
-661
webapp/webpack.mix.js
webapp/webpack.mix.js
+6
-0
No files found.
webapp/app/Http/Controllers/PagesController.php
View file @
f0e687ea
...
...
@@ -72,9 +72,8 @@ class PagesController extends Controller {
* @return \Illuminate\Contracts\View\Factory|\Illuminate\View\View
*/
public
function
licenseRaw
()
{
$response
=
\
Response
::
make
(
\
View
::
make
(
'pages.includes.raw.license'
),
200
);
$response
->
header
(
'Content-Type'
,
'text/plain'
);
return
$response
;
return
response
()
->
file
(
'LICENSE'
,
[
'Content-Type'
=>
'text/plain'
]);
}
/**
...
...
webapp/resources/views/pages/includes/raw/license.php
deleted
100644 → 0
View file @
7198c019
This diff is collapsed.
Click to expand it.
webapp/webpack.mix.js
View file @
f0e687ea
...
...
@@ -86,3 +86,9 @@ mix.copy(
'
node_modules/semantic-ui-css/semantic.min.js
'
,
'
public/js/semantic.min.js
'
,
);
// Other static resources
mix
.
copy
(
'
../LICENSE
'
,
'
public/LICENSE
'
,
);
Write
Preview
Markdown
is supported
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