import { Request , Response } from "@architect/shared/architect-types" ; import { makeWebAppResponse } from "@architect/views/page-layout" ; import arc from "@architect/functions" ; import { log } from "@architect/shared/utils" ; async function handler ( request ) { const session = await arc . http . session . read ( request ) ; log ( `Session` , session ) ; return makeWebAppResponse ( { person : session . person , } ) ; } exports . handler = arc . http . async ( handler ) ;