Refactored controllers

This commit is contained in:
Graham Campbell
2015-01-01 15:45:04 +00:00
parent 1e85398a4b
commit 1bc73873ce
14 changed files with 118 additions and 63 deletions
+1 -5
View File
@@ -1,10 +1,6 @@
<?php
Route::api([
'version' => 'v1',
'namespace' => 'CachetHQ\Cachet\Controllers\Api',
'after' => 'allowed_domains',
], function () {
Route::api(['after' => 'allowed_domains', 'namespace' => 'CachetHQ\Cachet\Controllers\Api', 'version' => 'v1'], function () {
Route::get('components', 'ComponentController@getComponents');
Route::get('components/{id}', 'ComponentController@getComponent');
Route::get('components/{id}/incidents', 'ComponentController@getComponentIncidents');