"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const express_1 = require("express");
const default_1 = require("../sdk/default");
const router = (0, express_1.Router)();
router.get("/schedules/:userId", (req, res) => {
    const userId = req.params.userId;
    if (!userId) {
        res.status(400).json({ error: "Missing userId in path parameters" });
        return;
    }
    const schedules = default_1.defaultSdk.getSchedulesByUserId(userId);
    res.json(schedules);
});
exports.default = router;
