fyr.jsPreparing the runtime

Documentation

HTTP

Use Fyr's fetch-based HTTP client for browser requests while keeping server authorization on the backend.

Request data

Configure a base URL once when your application talks to a shared API.

Fyr.configure({ baseURL: "/api" });
const response = await Fyr.http.get("/projects");
console.log(response.data);

Send data

Validate data on your server even when the browser validates for usability.

await Fyr.http.post("/projects", {
  name: "Fyr public site"
});
Keep exploringSee framework examples