Skip to content
Permalink
Newer
Older
100644 7 lines (5 sloc) 213 Bytes
October 19, 2023 16:50
1
import { jsonError } from "../../common.js";
2
3
export async function onRequest(context: RequestContext) {
October 19, 2023 16:50
4
if (!context.data.current_user) return jsonError("Not logged in", 401);
5
6
return await context.next();
7
}