"use strict";
// SPDX-License-Identifier: AGPL-3.0-or-later
// Copyright (C) 2024-2026 Gracker (Chris)
// This file is part of SmartPerfetto. See LICENSE for details.
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const express_1 = require("express");
const sqlController_1 = __importDefault(require("../controllers/sqlController"));
// import { authenticate, checkUsage } from '../middleware/auth';
const router = (0, express_1.Router)();
const sqlController = new sqlController_1.default();
// GET /api/sql/tables - Get available Perfetto tables schema (public)
router.get('/tables', sqlController.getTablesSchema);
// POST /api/sql/generate - Generate Perfetto SQL from natural language (auth disabled for development)
router.post('/generate', sqlController.generateSql);
exports.default = router;
//# sourceMappingURL=sql.js.map