<?php
declare(strict_types=1);

namespace App\Modules\FacilityGrids\Controllers;

use App\Core\Controller;
use App\Core\Request;
use App\Core\Response;

class RedirectController extends Controller
{
    public function mirrorIndex(Request $request): Response
    {
        return $this->redirect('/facility-grids');
    }

    public function mirrorShow(Request $request, int $id): Response
    {
        return $this->redirect('/facility-grids/' . $id);
    }

    public function poolIndex(Request $request): Response
    {
        return $this->redirect('/facility-grids');
    }

    public function poolGrid(Request $request, int $id): Response
    {
        return $this->redirect('/facility-grids/' . $id);
    }

    public function poolSchedules(Request $request, int $id): Response
    {
        return $this->redirect('/facility-grids/' . $id . '/schedules');
    }
}
