Added: Fuel record create - not complete yet
All checks were successful
Build and Deploy Zola Website / build_and_deploy (push) Successful in 12s

This commit is contained in:
2025-01-03 17:10:08 +01:00
parent c5955010cb
commit 860a20d946
6 changed files with 93 additions and 3 deletions

View File

@ -21,7 +21,7 @@ require_once '../core/middlewares/RequireAuth.php';
require_once models . 'User.php';
require_once models . 'Vehicle.php';
#require_once models . 'Refueling.php';
require_once models . 'Refuel.php';
// Initialize router
$router = new Router();
@ -41,7 +41,7 @@ $router->group('/auth', [], function ($router) {
// dashboard route
$router->add('/dashboard', 'DashboardController@index', ['RequireAuth']);
// habits routes
// vehicle routes
$router->group('/vehicles', ['RequireAuth'], function ($router) {
$router->add('', 'VehicleController@index');
$router->add('/create', 'VehicleController@create');
@ -49,4 +49,8 @@ $router->group('/vehicles', ['RequireAuth'], function ($router) {
$router->add('/delete/{id}', 'VehicleController@delete');
});
$router->group('/refuel', ['RequireAuth'], function ($router) {
$router->add('/create', 'RefuelController@create');
});
$router->dispatch();