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
Based on the output of the command: grep -r methods pages/ > /tmp/methods.txt, I believe the withRouteSpec should have the methods:
get
post
put
patch
delete
getAndPost
postAndPut
postAndPatch
postAndDelete
We may want to exclude the postAndPut because only one route uses it.
Also, it would be good to add some jsdoc to explain why the methods like getAndPost are helpful (I only understand why we do this after @seveibar explained it in a slack thread for someone else)
Furthermore, we should have a custom method that accepts the method key inside the route_spec to be more future-proof and handle edge cases.
New Vercel App endpoints don't support
res
Could this also help with method-discriminated validation more generally?
The text was updated successfully, but these errors were encountered: