1
0
Fork 0
mirror of https://github.com/kou029w/quot.git synced 2025-01-31 22:38:07 +00:00

Compare commits

..

No commits in common. "92eaf9125aa5502bc7fd6981af71935fb3d351c3" and "e2539e4dc57c194e272796d6c7a213d5f37d984a" have entirely different histories.

View file

@ -6,7 +6,7 @@ import Card from "../components/card";
async function fetchPages(): Promise<Pages.Response> {
const jwt = window.localStorage.getItem("jwt");
const res = await fetch(
`${import.meta.env.QUOT_API_ENDPOINT}/pages?order=updated.desc&limit=24`,
`${import.meta.env.QUOT_API_ENDPOINT}/pages?order=updated.desc`,
{ headers: jwt ? { authorization: `Bearer ${jwt}` } : {} }
);
const data = (await res.json()) as Pages.Response;