first commit
This commit is contained in:
1
金壶/ydyd_service/route/.pydio
Normal file
1
金壶/ydyd_service/route/.pydio
Normal file
@@ -0,0 +1 @@
|
||||
ee3f9291-e975-4aef-8474-7898ecfc46fc
|
||||
19
金壶/ydyd_service/route/api.php
Normal file
19
金壶/ydyd_service/route/api.php
Normal file
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
/**
|
||||
* Created by PhpStorm.
|
||||
* User: liujia
|
||||
* Date: 2019/1/30
|
||||
* Time: 14:39
|
||||
*/
|
||||
Route::domain('api', function () {
|
||||
// Route::group('user', function () {
|
||||
// // 动态注册域名的路由规则
|
||||
// Route::post('register_app', 'user/register_app')->crossDomainRule();
|
||||
// })->middleware(app\http\middleware\ApiMiddleware::class);
|
||||
//
|
||||
// Route::group('common', function () {
|
||||
// // 动态注册域名的路由规则
|
||||
// Route::post('userTypeInfo', 'common/userTypeInfo')->crossDomainRule();
|
||||
// })->middleware(app\http\middleware\ApiMiddleware::class);
|
||||
})->bind('api');
|
||||
|
||||
20
金壶/ydyd_service/route/route.php
Normal file
20
金壶/ydyd_service/route/route.php
Normal file
@@ -0,0 +1,20 @@
|
||||
<?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>
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
Route::get('think', function () {
|
||||
return 'hello,ThinkPHP5!';
|
||||
});
|
||||
|
||||
Route::get('hello/:name', 'index/hello');
|
||||
|
||||
return [
|
||||
|
||||
];
|
||||
Reference in New Issue
Block a user