const req = await fetch( "http://localhost:3000/api/auth/signin", { method: "POST", header:{ 'Accept':'application/json', 'Content-Type': 'application/json' }, body: JSON.stringify({ username:myusername, password:mypassword }) }, )
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter