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.
92eaf9125a
...
e2539e4dc5
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue