Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created January 9, 2020 20:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parzibyte/08d4b51505f0a9f2ce24a98479496c67 to your computer and use it in GitHub Desktop.
Save parzibyte/08d4b51505f0a9f2ce24a98479496c67 to your computer and use it in GitHub Desktop.
"post": (ruta, datos) =>
fetch(RUTA_SERVIDOR + ruta, {
credentials: 'include',
method: "POST",
body: JSON.stringify(datos)
})
.then(r => r.json())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment