route.php 1.2 KB

123456789101112131415161718192021222324252627282930
  1. <?php
  2. use Illuminate\Support\Facades\Route;
  3. use Modules\WechatPlatform\Http\KFMessageController;
  4. use Modules\WechatPlatform\Http\Controllers\WechatKeywordsController;
  5. Route::prefix('wechatPlatform')->group(function(){
  6. Route::prefix('kfMessage')->group(function(){
  7. Route::get('list', [KFMessageController::class, 'list']);
  8. });
  9. Route::prefix('wechat')->group(function () {
  10. // 微信公众号设置
  11. Route::prefix('officialAccount')->group(function () {
  12. // 关键字列表
  13. Route::prefix('keyword')->group(function () {
  14. // 列表
  15. Route::any("list",[WechatKeywordsController::class,'list']);
  16. // 添加
  17. Route::post('add',[WechatKeywordsController::class,'add']);
  18. // 编辑
  19. Route::post('edit/{id}',[WechatKeywordsController::class,'edit']);
  20. // 详情
  21. Route::any('detail/{id}',[WechatKeywordsController::class,'detail']);
  22. // 删除
  23. Route::any('del/{id}',[WechatKeywordsController::class,'del']);
  24. // 配置公众号
  25. Route::post('allocation/id',[WechatKeywordsController::class,'allocation']);
  26. });
  27. });
  28. });