Format the api routes

This commit is contained in:
James Brooks
2014-11-24 20:45:04 +00:00
parent 72314e40b5
commit ce44ee5cef

View File

@@ -1,9 +1,8 @@
<?php
Route::api(['version' => 'v1', 'prefix' => 'api'], function()
{
Route::api(['version' => 'v1', 'prefix' => 'api'], function() {
Route::get('components', 'ApiController@getComponents');
Route::get('components/{id}', 'ApiController@getComponent');
Route::get('components', 'ApiController@getComponents');
Route::get('components/{id}', 'ApiController@getComponent');
});
});