"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getDefaultProviders = void 0;
const database_1 = require("../../../database");
const tables_1 = require("../../../database/tables");
const getDefaultProviders = async (req, res) => {
    try {
        const db = (0, database_1.getDb)();
        const providers = await db.select().from(tables_1.defaultProvidersTable);
        res.json({ data: providers });
    }
    catch {
        res.status(500).json({ error: 'Failed to fetch default providers' });
    }
};
exports.getDefaultProviders = getDefaultProviders;
//# sourceMappingURL=get-default-providers.js.map