You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The example under "Guard" seems to have a typo. The GET request has a body. According to MDN, this is not a good idea. The author of the discussion I referenced, couldn't even get the example to run.
app.get('/user/:id',({ body })=>signUp(body)).post('/profile',({ body })=>signIn(body),{beforeHandle: isUserExists})
What is the type of issue?
Example code is not working
What is the issue?
See elysiajs/elysia#528
The example under "Guard" seems to have a typo. The GET request has a body. According to MDN, this is not a good idea. The author of the discussion I referenced, couldn't even get the example to run.
Where did you find it?
https://elysiajs.com/life-cycle/before-handle#guard
The text was updated successfully, but these errors were encountered: