20 lines
382 B
PHP
20 lines
382 B
PHP
<?php
|
|
|
|
namespace App\Http\Controllers;
|
|
|
|
use App\Services\SlotService;
|
|
use Illuminate\Http\JsonResponse;
|
|
|
|
class AvailabilityController extends Controller
|
|
{
|
|
public function __construct(
|
|
private readonly SlotService $slotService,
|
|
) {
|
|
}
|
|
|
|
public function index(): JsonResponse
|
|
{
|
|
return response()->json($this->slotService->getAvailability());
|
|
}
|
|
}
|