This commit is contained in:
Janis
2023-01-29 17:33:37 +01:00
parent 92ec33fea4
commit 0491b673aa
18 changed files with 600 additions and 156 deletions

View File

@@ -35,7 +35,7 @@ async function GetRecentArticles(categoryName: string): Promise<any> {
}
async function GetCategory(categoryName: string): Promise<any> {
const result: Response = await fetch(urlJoin(apiUrl, `categories/${categoryName}`), {
const result: Response = await fetch(urlJoin(apiUrl, `categories/name/${categoryName}`), {
cache: "force-cache",
next: { revalidate: 3600 },
});