1
0
Fork 0
mirror of https://github.com/kou029w/quot.git synced 2025-01-31 06:18:01 +00:00
This commit is contained in:
Nebel 2022-09-12 23:17:40 +09:00 committed by GitHub
parent e2539e4dc5
commit d0faead5db
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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`,
`${import.meta.env.QUOT_API_ENDPOINT}/pages?order=updated.desc&limit=50`,
{ headers: jwt ? { authorization: `Bearer ${jwt}` } : {} }
);
const data = (await res.json()) as Pages.Response;