"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getPluginPresets = void 0;
const database_1 = require("../../database");
const tables_1 = require("../../database/tables");
const getPluginPresets = async (req, res) => {
    try {
        const db = await (0, database_1.getDb)();
        const presets = await db.select().from(tables_1.pluginsPresetsTable);
        res.json({ data: presets });
    }
    catch (error) {
        res.status(500).json({ error: 'Failed to fetch plugin presets', details: String(error) });
    }
};
exports.getPluginPresets = getPluginPresets;
//# sourceMappingURL=plugins.js.map