From 95feab744e0d2af6ffd9fdb96fe4203f311c3ab1 Mon Sep 17 00:00:00 2001 From: Yisroel Baum Date: Thu, 6 Nov 2025 10:19:33 +0200 Subject: [PATCH] create route for carrier page and post endpoint for creating carrier --- bootstrap/app.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bootstrap/app.php b/bootstrap/app.php index 3688d90..533dd0f 100644 --- a/bootstrap/app.php +++ b/bootstrap/app.php @@ -5,6 +5,7 @@ use Slim\Csrf\Guard as CsrfMiddleware; use Slim\Views\Twig; use Slim\Views\TwigMiddleware; use FreightQuote\User\UserController; +use FreightQuote\Carrier\CarrierController; use FreightQuote\MiddleWare\AuthMiddleware; use FreightQuote\MiddleWare\CsrfToTwigMiddleware; @@ -27,5 +28,7 @@ $app->get('/', [UserController::class, 'home']); $app->get('/login', [UserController::class, 'login']); $app->post('/login', [UserController::class, 'doLogin']); $app->get('/dashboard', [UserController::class, 'dashboard'])->add($auth); +$app->get('/freight_carriers', [CarrierController::class, 'page']); +$app->post('/create_carrier', [CarrierController::class, 'create']); return $app;