mirror of
https://github.com/outline/outline.git
synced 2026-06-13 11:25:03 +03:00
f7826c7d91
* chore(deps): bump koa from 2.16.1 to 3.0.1 Bumps [koa](https://github.com/koajs/koa) from 2.16.1 to 3.0.1. - [Release notes](https://github.com/koajs/koa/releases) - [Changelog](https://github.com/koajs/koa/blob/master/History.md) - [Commits](https://github.com/koajs/koa/compare/v2.16.1...v3.0.1) --- updated-dependencies: - dependency-name: koa dependency-version: 3.0.1 dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com> * Update ctx.throw usage --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Tom Moor <tom@getoutline.com>
8 lines
154 B
TypeScript
8 lines
154 B
TypeScript
import Router from "koa-router";
|
|
|
|
const router = new Router();
|
|
|
|
router.post("/test/error", (ctx) => ctx.throw(500, new Error()));
|
|
|
|
export default router;
|