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:47:02 +01:00 committed by GitHub
parent 9c55665ea9
commit 16657ec891
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -12,7 +12,7 @@ const fetchCategories = async (): Category[] => {
return data.categories; return data.categories;
} }
const fetchAllMetaDataFiles = async () => { const fetchScripts = async (): Script[] => {
const response = await fetch( const response = await fetch(
`https://api.github.com/repos/community-scripts/${basePath}/contents/json`, `https://api.github.com/repos/community-scripts/${basePath}/contents/json`,
); );