Added Component Repository into controller

This commit is contained in:
Elliot Hesp
2014-11-26 15:00:36 +00:00
parent 7c0b80f6a4
commit af10821ef5
8 changed files with 114 additions and 82 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
<?php
Route::api(['version' => 'v1', 'prefix' => 'api', 'namespace' => 'Cachet\Controllers\Api'], function() {
Route::api(['version' => 'v1', 'prefix' => 'api', 'namespace' => 'CachetHq\Cachet\Controllers\Api'], function() {
Route::get('components', 'ComponentController@getComponents');
Route::get('components/{id}', 'ComponentController@getComponent');