wip
This commit is contained in:
commit
326384957c
22 changed files with 4176 additions and 0 deletions
6
src/die.ts
Normal file
6
src/die.ts
Normal file
|
@ -0,0 +1,6 @@
|
|||
import { Context } from 'koa';
|
||||
|
||||
export const die = (ctx: Context, error: string): Promise<void> => {
|
||||
ctx.status = 400;
|
||||
return ctx.render('error', { error });
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue