1
0
Fork 0
mirror of https://github.com/kou029w/quot.git synced 2025-01-31 14:28:06 +00:00

Compare commits

..

2 commits

Author SHA1 Message Date
92eaf9125a
limit=24 2022-09-12 23:34:05 +09:00
d0faead5db
limit=50 2022-09-12 23:17:40 +09:00

View file

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