Access-Control-Allow-Origin setting works. Closes #72

This commit is contained in:
James Brooks
2014-12-20 18:30:48 +00:00
parent 87395e6562
commit 6b76cf5dc7
5 changed files with 26 additions and 6 deletions

View File

@@ -1,6 +1,10 @@
<?php
Route::api(['version' => 'v1', 'namespace' => 'CachetHQ\Cachet\Controllers\Api'], function() {
Route::api([
'version' => 'v1',
'namespace' => 'CachetHQ\Cachet\Controllers\Api',
'after' => 'allowed_domains'
], function() {
Route::get('components', 'ComponentController@getComponents');
Route::get('components/{id}', 'ComponentController@getComponent');
Route::get('components/{id}/incidents', 'ComponentController@getComponentIncidents');