WebRoutes.php 990 B

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: z-yang
  5. * Date: 2018/5/21
  6. * Time: 10:43
  7. */
  8. Route::group(['domain'=>env('WAP_BROWER_DOMAIN'),'namespace'=>'App\Http\Controllers\WapBrowser'],function(){
  9. Route::get('test','Chapter\ChapterController@test');
  10. //reader
  11. Route::get('reader','Chapter\ChapterController@index');
  12. //强管
  13. Route::get('subscribe','Subscribe\SubscribeController@subscribeView');
  14. //书库
  15. Route::get('stock','BookController@stock');
  16. Route::get('search','BookController@search');
  17. //书城
  18. Route::get('/api/books/library','BookController@library');
  19. //详情
  20. Route::get('detail','Chapter\ChapterController@bookDetail');
  21. //目录
  22. Route::get('catalog','Chapter\ChapterController@catalog');
  23. Route::get('apiCatalog','Chapter\ChapterController@apiCatalog');
  24. //首页
  25. Route::get('/','Index\IndexController@index');
  26. //派单
  27. Route::get('yun/{param}','Index\IndexController@yun')->where('param','\d+');
  28. });