Skip to content

Commit

Permalink
Merge pull request #83 from glaucocustodio/patch-1
Browse files Browse the repository at this point in the history
Improve README.md
  • Loading branch information
marcelolx authored Oct 29, 2024
2 parents ea24d2d + b4b125c commit ade077a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ import { get, post, put, patch, destroy } from '@rails/request.js'
async myMethod () {
const response = await post('localhost:3000/my_endpoint', { body: JSON.stringify({ name: 'Request.JS' }) })
if (response.ok) {
const body = await response.json
...
}
}
Expand Down

0 comments on commit ade077a

Please sign in to comment.