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