pappitti's picture
adding new assessments, dynamic charts for more classifications, pagination and removal of waterfall
d35e9ec
raw
history blame contribute delete
332 Bytes
import type { ServerResponse } from 'http';
export function jsonResponse(res: ServerResponse, statusCode: number, data: any) {
res.statusCode = statusCode;
res.setHeader('Content-Type', 'application/json');
res.end(JSON.stringify(data));
}
export const ALLOWED_CLASSIFICATIONS = new Set(['compliance', 'pitti_compliance']);