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

2e9265a · Jan 9, 2024

History

10 Commits
Feb 15, 2023
Jan 9, 2024
Feb 15, 2023
Feb 15, 2023

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