Skip to content

Perform easier fetches in Static FrontEnd projects, You don't need to declare and instantiate inputs to get their values. EasyFetch will do it for you

Notifications You must be signed in to change notification settings

andritowmega/EasyFetch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

EasyFetch 0.1.1

Perform easier fetches in Static FrontEnd projects, You don't need to declare and instantiate inputs to get their URL Include

https://easyfetch.smarttech.pe/js/easyfetch.js

values. EasyFetch will do it for you

<body>
  <input type="text" id="email-login">
  <input type="text" id="password-login">
</body>

async function loginAdmin() {
  let response = await easyFetch
    .fetchData(
      "/admin/signin",
      {
        email: "email-login",
        password: "password-login",
      },
      "POST",
      true
    )
    .catch((e) => {
      console.error(e);
      return null;
    });
  console.log("Response",response)
}

About

Perform easier fetches in Static FrontEnd projects, You don't need to declare and instantiate inputs to get their values. EasyFetch will do it for you

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published