2018-02-09 09:09:36 +08:00
|
|
|
<?php
|
|
|
|
|
|
|
|
/**
|
|
|
|
* This is publicly accessible
|
|
|
|
*/
|
|
|
|
Route::group(['middleware' => []], function() {
|
2018-06-22 21:31:15 +08:00
|
|
|
Route::get('/', 'ApiController@index');
|
2018-02-09 09:09:36 +08:00
|
|
|
});
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 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');
|
2018-02-09 09:09:36 +08:00
|
|
|
});
|