phpvms/resources/stubs/modules/routes-api.stub

18 lines
312 B
Plaintext
Raw Normal View History

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