Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
import path from 'path';
import Koa from 'koa';
import csp from 'koa-csp';
import logger from 'koa-logger';
// middleware config
import * as config from './config';
import router from './routes';
const server = new Koa();
server
.use(logger())
.use(csp(config.csp))
.use(router.routes());
export default server;
import path from 'path';
import Koa from 'koa';
import csp from 'koa-csp';
import logger from 'koa-logger';
// middleware config
import * as config from './config';
import router from './routes';
const server = new Koa();
server
.use(logger())
.use(csp(config.csp))
.use(router.routes());
export default server;