44 lines
1.4 KiB
PHP
44 lines
1.4 KiB
PHP
<?php
|
|
// +----------------------------------------------------------------------
|
|
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
|
|
// +----------------------------------------------------------------------
|
|
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
|
|
// +----------------------------------------------------------------------
|
|
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
|
|
// +----------------------------------------------------------------------
|
|
// | Author: liu21st <liu21st@gmail.com>
|
|
// +----------------------------------------------------------------------
|
|
use think\facade\Route;
|
|
|
|
Route::get('think', function () {
|
|
return 'hello,ThinkPHP6!';
|
|
});
|
|
|
|
Route::get('hello/:name', 'index/hello');
|
|
|
|
Route::rule('/','Index/index');
|
|
//登录注册
|
|
Route::post('reg','Login/reg');
|
|
Route::post('login','Login/index');
|
|
Route::post('forget','Login/forget');
|
|
Route::get('logout','Login/logout');
|
|
//公共接口
|
|
Route::post('getSmsCode','Api/getSmsCode');
|
|
Route::post('uploadFile','Api/upload')->append(['type' => 'image']);
|
|
Route::get('buyerBankList','Api/getBuyerAvailableBankList');
|
|
//买家认证
|
|
Route::group('certification',function(){
|
|
Route::post('add','add');
|
|
Route::get('get','get');
|
|
})->prefix('certification.Buyer/');
|
|
|
|
|
|
|
|
|
|
|
|
Route::rule('i/:inviteCode','Landing/index');
|
|
Route::rule('test','Test/index');
|
|
Route::rule('testtest','TestTest/indexIndex');
|
|
|
|
|