- Created new module for CostCalculator with necessary routes and controllers. - Implemented views for creating, editing, and displaying costs. - Added form partials for cost input with validation. - Integrated living status options in the form. - Developed frontend logic for cost calculation steps with dynamic UI updates. - Included necessary assets (JS and SCSS) for styling and functionality. - Updated constants for living status options. - Enhanced existing client-side cost calculator page with new features.
20 lines
683 B
PHP
20 lines
683 B
PHP
<?php
|
|
|
|
use Illuminate\Support\Facades\Route;
|
|
use Modules\CostCalculator\Http\Controllers\CostCalculatorController;
|
|
|
|
/*
|
|
*--------------------------------------------------------------------------
|
|
* API Routes
|
|
*--------------------------------------------------------------------------
|
|
*
|
|
* Here is where you can register API routes for your application. These
|
|
* routes are loaded by the RouteServiceProvider within a group which
|
|
* is assigned the "api" middleware group. Enjoy building your API!
|
|
*
|
|
*/
|
|
|
|
Route::middleware(['auth:sanctum'])->prefix('v1')->group(function () {
|
|
Route::apiResource('costcalculator', CostCalculatorController::class)->names('costcalculator');
|
|
});
|