"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const express = require("express");
const clear_1 = require("./clear");
const error_1 = require("./error");
const log_1 = require("./log");
const results_1 = require("./results");
function setupServer(logger, outputDirectory, cb) {
    const app = express();
    app.use(express.static(outputDirectory));
    app.use(express.json());
    app.post('/results', results_1.results(cb));
    app.post('/log', log_1.log(logger));
    app.post('/error', error_1.error(logger));
    app.get('/clear', clear_1.clear(logger));
    return app;
}
exports.setupServer = setupServer;
//# sourceMappingURL=setupServer.js.map