Updates for addon/modules to make it easier to create APIs
This commit is contained in:
17
modules/Sample/Http/Routes/api.php
Normal file
17
modules/Sample/Http/Routes/api.php
Normal file
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* This is publicly accessible
|
||||
*/
|
||||
Route::group(['middleware' => []], function() {
|
||||
Route::get('/', 'SampleController@index');
|
||||
});
|
||||
|
||||
/**
|
||||
* This is required to have a valid API key
|
||||
*/
|
||||
Route::group(['middleware' => [
|
||||
'api.auth'
|
||||
]], function() {
|
||||
Route::get('/hello', 'SampleController@hello');
|
||||
});
|
||||
Reference in New Issue
Block a user