routes.php 349 B

1234567891011
  1. <?php
  2. $app = app()->router;
  3. $app->group([
  4. 'namespace' => 'App\Crontab\Controllers',
  5. 'prefix' => 'crontab',
  6. 'middleware' => [],
  7. ], function () use ($app) {
  8. // 定时任务请求地址
  9. // /crontab/task/run?module=module&service=service&method=method&params=params
  10. $app->get('/task/run', 'TaskInfoController@task');
  11. });