<?php

use Illuminate\Support\Facades\Route;
use Modules\Routing\Http\Controllers\EvRouteController;

Route::prefix('api/v1')->middleware(['api', 'auth:sanctum', 'throttle:60,1'])->group(function () {
    Route::get('/routes', [EvRouteController::class, 'index'])->name('routing.routes.index');
    Route::get('/routes/{route}', [EvRouteController::class, 'show'])->name('routing.routes.show');
    Route::get('/routes/{route}/pricing', [EvRouteController::class, 'pricing'])->name('routing.routes.pricing');
    Route::get('/routes/{route}/time-slots', [EvRouteController::class, 'timeSlots'])->name('routing.routes.time-slots');
});
