phpvms/resources/stubs/modules/routes-api.stub
2018-06-22 08:31:15 -05:00

18 lines
312 B
Plaintext

<?php
/**
* This is publicly accessible
*/
Route::group(['middleware' => []], function() {
Route::get('/', 'ApiController@index');
});
/**
* This is required to have a valid API key
*/
Route::group(['middleware' => [
'api.auth'
]], function() {
Route::get('/hello', 'ApiController@hello');
});