We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ea24d2d commit b4b125cCopy full SHA for b4b125c
README.md
@@ -55,6 +55,7 @@ import { get, post, put, patch, destroy } from '@rails/request.js'
55
async myMethod () {
56
const response = await post('localhost:3000/my_endpoint', { body: JSON.stringify({ name: 'Request.JS' }) })
57
if (response.ok) {
58
+ const body = await response.json
59
...
60
}
61
0 commit comments