Skip to content

Commit

Permalink
Send correct status code for /account/login route
Browse files Browse the repository at this point in the history
  • Loading branch information
Rustem Mussabekov committed Jan 18, 2024
1 parent 8664964 commit 4c5091b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions functions/pb/account/login.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
export async function onRequest({ request }) {
const res = await fetch(request)

return new Response(res.body, {
status: 401,
headers: res.headers
})
}

0 comments on commit 4c5091b

Please sign in to comment.