mirror of https://github.com/andrigamerita/simpkey
7 lines
163 B
TypeScript
7 lines
163 B
TypeScript
|
import { Context } from 'koa';
|
||
|
|
||
|
export const die = (ctx: Context, error: string): Promise<void> => {
|
||
|
ctx.status = 400;
|
||
|
return ctx.render('error', { error });
|
||
|
};
|