调整接口
This commit is contained in:
16
app/Api/Controllers/IndexController.php
Normal file
16
app/Api/Controllers/IndexController.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
|
||||
namespace App\Api\Controllers;
|
||||
|
||||
class IndexController extends Controller
|
||||
{
|
||||
|
||||
public function index()
|
||||
{
|
||||
return $this->respond('200', [
|
||||
'code' => 200,
|
||||
'message' => 'Json Api is ready',
|
||||
]);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1,6 +1,8 @@
|
||||
<?php
|
||||
|
||||
Route::group(['prefix' => 'V1'], function () {
|
||||
Route::get('/', 'IndexController@index');
|
||||
|
||||
Route::post('user/get', 'UserController@index');
|
||||
Route::post('user/check', 'UserController@check');
|
||||
|
||||
@@ -22,5 +24,4 @@ Route::group(['prefix' => 'V1'], function () {
|
||||
Route::post('unionpay/index', 'UnionPayController@index');
|
||||
Route::post('unionpay/query', 'UnionPayController@query');
|
||||
|
||||
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user