for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace FondBot\Foundation\Providers;
use Illuminate\Support\Facades\Route;
use Illuminate\Foundation\Support\Providers\RouteServiceProvider as BaseRouteServiceProvider;
class RouteServiceProvider extends BaseRouteServiceProvider
{
protected $namespace = 'FondBot\Foundation';
public function map(): void
Route::get('/', 'FondBot\Foundation\Controller@index');
Route::group(['middleware' => 'fondbot.webhook'], function () {
Route::get('webhook/{channel}', 'FondBot\Foundation\Controller@webhook')->name('fondbot.webhook');
Route::post('webhook/{channel}', 'FondBot\Foundation\Controller@webhook')->name('fondbot.webhook');
});
}