File tree Expand file tree Collapse file tree 3 files changed +36
-0
lines changed Expand file tree Collapse file tree 3 files changed +36
-0
lines changed Original file line number Diff line number Diff line change
1
+
2
+ export async function GET ( { locals } ) {
3
+ //@ts -ignore
4
+ const session = locals . session ;
5
+
6
+ if ( ! session ) {
7
+ return new Response ( 'Unauthorized' , { status : 401 } ) ;
8
+ }
9
+
10
+ return new Response ( JSON . stringify ( session ) , { status : 200 } ) ;
11
+ }
12
+
Original file line number Diff line number Diff line change
1
+
2
+ export async function GET ( { locals } ) {
3
+ //@ts -ignore
4
+ const session = locals . session ;
5
+
6
+ if ( ! session ) {
7
+ return new Response ( 'Unauthorized' , { status : 401 } ) ;
8
+ }
9
+
10
+ return new Response ( JSON . stringify ( session ) , { status : 200 } ) ;
11
+ }
12
+
Original file line number Diff line number Diff line change
1
+
2
+ export async function GET ( { locals } ) {
3
+ //@ts -ignore
4
+ const session = locals . session ;
5
+
6
+ if ( ! session ) {
7
+ return new Response ( 'Unauthorized' , { status : 401 } ) ;
8
+ }
9
+
10
+ return new Response ( JSON . stringify ( session ) , { status : 200 } ) ;
11
+ }
12
+
You canβt perform that action at this time.
0 commit comments