Edited: vehicle create route renamed from vehicle add

This commit is contained in:
Filip Rojek 2025-01-02 02:02:14 +01:00
parent be6b465684
commit e13edeccfc
2 changed files with 2 additions and 2 deletions

View File

@ -1,7 +1,7 @@
<link rel="stylesheet" href="/css/vehicles.css">
<section class="vehicles">
<?php if (empty($this->get('vehicles'))): ?>
<p>No vehicles yet. <a href="/vehicles/add">Add your first vehicle</a>.</p>
<p>No vehicles yet. <a href="/vehicles/create">Add your first vehicle</a>.</p>
<?php else: ?>
<div class="vehicle-wrapper">
<?php foreach ($this->get('vehicles') as $vehicle): ?>

View File

@ -44,7 +44,7 @@ $router->add('/dashboard', 'DashboardController@index', ['RequireAuth']);
// habits routes
$router->group('/vehicles', ['RequireAuth'], function ($router) {
$router->add('', 'VehicleController@index');
$router->add('/add', 'VehicleController@create');
$router->add('/create', 'VehicleController@create');
$router->add('/edit/{id}', 'VehicleController@edit');
$router->add('/delete/{id}', 'VehicleController@delete');
});