<?php

use App\Controllers\HomeController;
use App\Controllers\LeadController;
use App\Controllers\ThanksController;

$app->get('/', HomeController::class.':index');

$app->post('/store', LeadController::class.':store');

$app->get('/thanks', ThanksController::class.':index');


<?php

use App\Controllers\HomeController;
use App\Controllers\LeadController;
use App\Controllers\ThanksController;

$app->get('/', HomeController::class.':index')->setName('home');
$app->post('/store', LeadController::class.':store')->setName('store');
$app->get('/thanks', ThanksController::class.':index')->setName('thanks');


Set names to default routes.
Set names to default routes.
