commit 08.01
This commit is contained in:
@@ -25,8 +25,11 @@ Route::get('/availability', [AvailabilitiesController::class, 'publicAvailabilit
|
||||
|
||||
// КЛИЕНТСКИЕ РОУТЫ БРОНИРОВАНИЙ (auth:sanctum)
|
||||
Route::middleware('auth:sanctum')->group(function () {
|
||||
Route::post('/bookings', [BookingsController::class, 'store']); // Пункт 9
|
||||
Route::post('/bookings/{id}/cancel', [BookingsController::class, 'cancel']); // Пункт 10
|
||||
Route::post('/bookings', [BookingsController::class, 'store']);
|
||||
Route::post('/bookings/{id}/cancel', [BookingsController::class, 'cancel']);
|
||||
Route::post('/bookings/{id}/cancel', [BookingsController::class, 'adminCancel']);
|
||||
Route::get('/bookings', [BookingsController::class, 'clientIndex']);
|
||||
Route::get('/bookings', [BookingsController::class, 'adminIndex']);
|
||||
});
|
||||
|
||||
// АДМИН РОУТЫ - ТОЛЬКО employee/admin (role:employee)
|
||||
|
||||
@@ -3,5 +3,37 @@
|
||||
use Illuminate\Support\Facades\Route;
|
||||
|
||||
Route::get('/', function () {
|
||||
return view('welcome');
|
||||
return file_get_contents(public_path('index.html'));
|
||||
});
|
||||
|
||||
Route::get('/index.html', function () {
|
||||
return file_get_contents(public_path('index.html'));
|
||||
});
|
||||
|
||||
Route::get('/services.html', function () {
|
||||
return file_get_contents(public_path('services.html'));
|
||||
});
|
||||
|
||||
Route::get('/my-bookings.html', function () {
|
||||
return file_get_contents(public_path('my-bookings.html'));
|
||||
});
|
||||
|
||||
Route::get('/admin-bookings.html', function () {
|
||||
return file_get_contents(public_path('admin-bookings.html'));
|
||||
});
|
||||
|
||||
Route::get('/admin-services.html', function () {
|
||||
return file_get_contents(public_path('admin-services.html'));
|
||||
});
|
||||
|
||||
Route::get('/admin-schedule.html', function () {
|
||||
return file_get_contents(public_path('admin-schedule.html'));
|
||||
});
|
||||
|
||||
Route::get('/booking-confirm.html', function () {
|
||||
return file_get_contents(public_path('booking-confirm.html'));
|
||||
});
|
||||
|
||||
Route::get('/register-login.html', function () {
|
||||
return file_get_contents(public_path('register-login.html'));
|
||||
});
|
||||
Reference in New Issue
Block a user