2018-02-09 09:09:36 +08:00
|
|
|
<?php
|
|
|
|
|
|
|
|
/**
|
|
|
|
* This is publicly accessible
|
|
|
|
*/
|
2019-08-27 00:32:46 +08:00
|
|
|
Route::group(['middleware' => []], function () {
|
2018-02-09 09:09:36 +08:00
|
|
|
Route::get('/', 'SampleController@index');
|
|
|
|
});
|
|
|
|
|
2019-08-27 00:32:46 +08:00
|
|
|
/*
|
2018-02-09 09:09:36 +08:00
|
|
|
* This is required to have a valid API key
|
|
|
|
*/
|
|
|
|
Route::group(['middleware' => [
|
2019-08-27 00:32:46 +08:00
|
|
|
'api.auth',
|
|
|
|
]], function () {
|
2018-02-09 09:09:36 +08:00
|
|
|
Route::get('/hello', 'SampleController@hello');
|
|
|
|
});
|