import * as express from 'express';
import { clear } from './clear';
import { error } from './error';
import { log } from './log';
import { results } from './results';
export function setupServer(logger, outputDirectory, cb) {
    const app = express();
    app.use(express.static(outputDirectory));
    app.use(express.json());
    app.post('/results', results(cb));
    app.post('/log', log(logger));
    app.post('/error', error(logger));
    app.get('/clear', clear(logger));
    return app;
}
//# sourceMappingURL=setupServer.js.map