Format the api routes
This commit is contained in:
@@ -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');
|
||||
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user