Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Tenzing
/
pdf-customizer
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
3af65751
authored
2016-05-12 15:03:56 -0400
by
Jeff Balicki
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
e
1 parent
681557b5
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
app/Http/Controllers/ApiController.php
app/Http/routes.php
app/Http/Controllers/ApiController.php
View file @
3af6575
...
...
@@ -136,7 +136,8 @@ class ApiController extends Controller
$pdf
=
$pdf
->
pdf
(
$pdfId
);
$response
=
$pdf
;
$statusCode
=
200
;
return
Response
::
json
(
$response
,
$statusCode
);
return
Response
::
json
(
$response
,
$statusCode
)
->
header
(
'Access-Control-Allow-Origin'
,
'*'
);
...
...
app/Http/routes.php
View file @
3af6575
...
...
@@ -30,7 +30,7 @@ Route::group(array('prefix' => 'api/v1'), function($json)
});
Route
::
any
(
'api/update'
,
array
(
'middleware'
=>
'cors'
,
'uses'
=>
'ApiController@update'
)
);
Route
::
any
(
'api/update'
,
[
'middleware'
=>
'cors'
,
'uses'
=>
'ApiController@update'
]
);
Route
::
any
(
'fileentry/postUpload'
,
'FileEntryController@postUpload'
);
...
...
Please
register
or
sign in
to post a comment