content.php 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <?php
  2. // +----------------------------------------------------------------------
  3. // | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
  4. // +----------------------------------------------------------------------
  5. // | Copyright (c) 2016~2024 https://www.crmeb.com All rights reserved.
  6. // +----------------------------------------------------------------------
  7. // | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
  8. // +----------------------------------------------------------------------
  9. // | Author: CRMEB Team <admin@crmeb.com>
  10. // +----------------------------------------------------------------------
  11. use app\common\middleware\AllowOriginMiddleware;
  12. use app\common\middleware\LogMiddleware;
  13. use app\common\middleware\MerchantAuthMiddleware;
  14. use app\common\middleware\MerchantTokenMiddleware;
  15. use think\facade\Route;
  16. use app\common\middleware\MerchantCheckBaseInfoMiddleware;
  17. Route::group(function () {
  18. //申请分账商户
  19. Route::group('community',function(){
  20. Route::get('cate/lst','/cateLst')->name('merchantCommunityCateLst')->option([
  21. '_alias' => '分类列表',
  22. ]);
  23. Route::get('lst','/lst')->name('merchantCommunityLst')->option([
  24. '_alias' => '列表',
  25. ]);
  26. Route::post('create','/create')->name('merchantCommunityCreate')->option([
  27. '_alias' => '添加',
  28. ]);
  29. Route::get('detail/:id','/detail')->name('merchantCommunityDetail')->option([
  30. '_alias' => '详情',
  31. ]);
  32. Route::post('update/:id','/update')->name('merchantCommunityUpdate')->option([
  33. '_alias' => '编辑',
  34. ]);
  35. Route::delete('delete/:id','/delete')->name('merchantCommunityDelete')->option([
  36. '_alias' => '删除',
  37. ]);
  38. Route::get('reply/:id','/reply')->name('merchantCommunityReply')->option([
  39. '_alias' => '评论',
  40. ]);
  41. })->prefix('merchant.store.content.Community')->option([
  42. '_path' => '/community/list',
  43. '_auth' => true,
  44. ]);
  45. })->middleware(AllowOriginMiddleware::class)
  46. ->middleware(MerchantTokenMiddleware::class, true)
  47. ->middleware(MerchantAuthMiddleware::class)
  48. ->middleware(MerchantCheckBaseInfoMiddleware::class)
  49. ->middleware(LogMiddleware::class);