From ce44ee5cef810f9f004569a7646db4224ad028a0 Mon Sep 17 00:00:00 2001 From: James Brooks Date: Mon, 24 Nov 2014 20:45:04 +0000 Subject: [PATCH] Format the api routes --- app/routes/api.php | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/app/routes/api.php b/app/routes/api.php index c7927a3f..4059f2b2 100644 --- a/app/routes/api.php +++ b/app/routes/api.php @@ -1,9 +1,8 @@ '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'); -}); + });