Permalink
Newer
100644
12 lines (8 sloc)
356 Bytes
1
import { jsonError } from "../../../common.js";
2
3
export async function onRequest(context: RequestContext) {
4
const { current_user: user } = context.data;
5
6
if (!user) return jsonError("Not logged in", 401);
7