Skip to content

Commit

Permalink
chore: forward status to client
Browse files Browse the repository at this point in the history
  • Loading branch information
xynydev committed Apr 20, 2024
1 parent dd5ecbb commit fa50e42
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/routes/+layout.server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ export async function load({ locals, cookies }) {
});

return {
githubUser: githubUserResponse.ok ? await githubUserResponse.json() : null
githubUser: githubUserResponse.ok ? await githubUserResponse.json() : null,
status: githubUserResponse.statusText + " " + githubUserResponse.status
};
}

0 comments on commit fa50e42

Please sign in to comment.