Create session check endpoint

This commit is contained in:
regalijan 2023-10-20 10:07:55 -04:00
parent 6e42af0b70
commit 748aa0e120
Signed by: regalijan
GPG Key ID: 5D4196DA269EF520

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) }),
);
}