Set the default prefix on our api

This commit is contained in:
James Brooks
2014-12-05 16:04:41 +00:00
parent da7a0cd351
commit 1df53113e4
2 changed files with 2 additions and 2 deletions

View File

@@ -37,7 +37,7 @@ return [
|
*/
'prefix' => null,
'prefix' => 'api',
/*
|--------------------------------------------------------------------------

View File

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