Process main page (linklist) through Slim controller
Including a bunch of improvements on the container, and helper used across new controllers.
This commit is contained in:
parent
6132d64748
commit
1a8ac737e5
44 changed files with 1459 additions and 747 deletions
application/api
|
@ -71,7 +71,14 @@ class ApiMiddleware
|
|||
$response = $e->getApiResponse();
|
||||
}
|
||||
|
||||
return $response;
|
||||
return $response
|
||||
->withHeader('Access-Control-Allow-Origin', '*')
|
||||
->withHeader(
|
||||
'Access-Control-Allow-Headers',
|
||||
'X-Requested-With, Content-Type, Accept, Origin, Authorization'
|
||||
)
|
||||
->withHeader('Access-Control-Allow-Methods', 'GET, POST, PUT, DELETE, OPTIONS')
|
||||
;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue