Create session check endpoint

This commit is contained in:
2023-10-20 10:07:55 -04:00
parent 6e42af0b70
commit 748aa0e120

View File

@ -0,0 +1,7 @@
import { jsonResponse } from "../../../common.js";
export async function onRequestGet(context: RequestContext) {
return jsonResponse(
JSON.stringify({ valid: Boolean(context.data.current_user) }),
);
}