Update frontend/src/app/api/categories/route.ts

Co-authored-by: Håvard Gjøby Thom <34199185+havardthom@users.noreply.github.com>
This commit is contained in:
Bram Suurd 2024-11-06 21:46:31 +01:00 committed by GitHub
parent 3b59f5b0ab
commit bdaea5ae79
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -4,7 +4,7 @@ import { NextResponse } from "next/server";
export const dynamic = "force-static";
const fetchCategories = async () => {
const fetchCategories = async (): Category[] => {
const response = await fetch(
`https://raw.githubusercontent.com/community-scripts/${basePath}/refs/heads/main/json/metadata.json`,
);