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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The reason will be displayed to describe this comment to others. Learn more.
i've found that patch method could not be matched but PATCH could be matched on the route defination.
// a client requestfetch('/path_to_patch_api',{method: 'PATCH',})// a hapi routehapi.route([{method: 'patch',path: '/path_to_patch_api',}])// π works// π not working// a client requestfetch('/path_to_patch_api',{method: 'patch',})// a hapi routehapi.route([{method: 'patch',path: '/path_to_patch_api',}])
but both bellow works fine:
// a client requestfetch('/path_to_get_api',{method: 'GET',})// a hapi routehapi.route([{method: 'get',path: '/path_to_get_api',}])// π works// π works too// a client requestfetch('/path_to_get_api',{method: 'get',})// a hapi routehapi.route([{method: 'get',path: '/path_to_get_api',}])
be79511
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i've found that
patch
method could not be matched butPATCH
could be matched on the route defination.but both bellow works fine: