import { getLogs, getErrorLogs } from '../../../../../frameworks/logging/logBuffer.js';
export const logsRoutes = async (fastify) => {
    fastify.get('/api/logs', async (request) => {
        const query = request.query;
        const logs = query.errors === 'true' ? getErrorLogs() : getLogs();
        return {
            logs,
            count: logs.length,
        };
    });
};
//# sourceMappingURL=logs.routes.js.map