app.php 1.1 KB

12345678910111213141516171819202122232425
  1. <?php
  2. // +----------------------------------------------------------------------
  3. // | ThinkPHP [ WE CAN DO IT JUST THINK ]
  4. // +----------------------------------------------------------------------
  5. // | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
  6. // +----------------------------------------------------------------------
  7. // | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
  8. // +----------------------------------------------------------------------
  9. // | Author: liu21st <liu21st@gmail.com>
  10. // +----------------------------------------------------------------------
  11. use think\facade\Route;
  12. Route::get('index','Index/index');
  13. Route::any('api/wechat/serve', 'WechatNotice/serve');
  14. Route::get('install','Install/begin');
  15. Route::group('install',function(){
  16. route::get('environment','/environment') ;
  17. route::get('databases','/databases') ;
  18. route::post('databases/create','/create') ;
  19. route::post('databases/check','/databasesCheck') ;
  20. route::post('perform/:n','/perform') ;
  21. route::get('end','/end') ;
  22. route::get('loader','/swooleCompiler') ;
  23. })->prefix('Install');