<?php
namespace App\Modules\Menu\Controllers;

use Core\Controller;

class MenuController extends Controller {

    public function index() {
        // Protect the route if necessary, though it relies on standard layout
        if (!isset($_SESSION['user_id'])) {
            header("Location: " . BASE_URL . "/auth/login");
            exit;
        }

        $this->render('Menu/Views/index', [
            'title' => 'قائمة الخدمات - OTIS'
        ]);
    }
}
