Pruebas del fetch

This commit is contained in:
Traym17 2022-07-12 20:16:42 -06:00
parent a2e5cfcc5b
commit 9804bd2842
1 changed files with 15 additions and 0 deletions

View File

@ -4,6 +4,21 @@ import { Button } from 'primereact/button';
const FormAdminSistema = () => { const FormAdminSistema = () => {
async function fetchP(){
var data = {
dni: "12687",
name: "hola",
last_name: "buuu",
email: "tmora4c@ucenfotec.ac.cr",
phone: 84664515,
password: "1203",
user_type: "1",
status: "2"
};
console.log(data);
let result=await fetch('https://pokeapi.co/api/v2/pokemon?limit=10&offset=0', {method:'GET'});
}
function registrarAdmin() { function registrarAdmin() {
var data = { var data = {
dni: "12687", dni: "12687",