Added: Fuel record create - not complete yet
All checks were successful
Build and Deploy Zola Website / build_and_deploy (push) Successful in 12s
All checks were successful
Build and Deploy Zola Website / build_and_deploy (push) Successful in 12s
This commit is contained in:
@ -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();
|
||||
|
Reference in New Issue
Block a user