@compas/server
Version:
Koa server and common middleware
29 lines (23 loc) • 554 B
JavaScript
/**
* @typedef {import("./src/app").KoaApplication} Application
*/
/**
* @template S,C,R
* @typedef {import("koa").ParameterizedContext<S,C,R>} Context
*/
/**
* @typedef {import("koa").Middleware} Middleware
*/
/**
* @typedef {import("koa").Next} Next
*/
/**
* @typedef {import("./src/middleware/body").BodyParserPair} BodyParserPair
*/
export { getApp } from "./src/app.js";
export {
createBodyParsers,
sendFile,
compose,
} from "./src/middleware/index.js";
export { closeTestApp, createTestAppAndClient } from "./src/testing.js";