feat:注册新的回调路由

This commit is contained in:
zyimm 2023-07-10 09:54:16 +08:00
parent c3c6bfd3b7
commit 9306016fbe

View File

@ -6,7 +6,7 @@ use function React\Async\coroutine;
$path = config('rocket_mq.callback', '/rocketmq/producer/notify');
//注册回调路由
Route::post($path, function () {
Route::any($path.'$', function () {
coroutine(function () {
app()->make(Consumer::class, [
request()->param()