feat: initial refactor to use marka as backend
This commit is contained in:
@@ -30,3 +30,14 @@ export const resources = {
|
||||
prefix: "Media/series/",
|
||||
},
|
||||
} as const;
|
||||
|
||||
export async function fetchResource(resource: string) {
|
||||
try {
|
||||
const response = await fetch(
|
||||
`https://marka.max-richter.dev/resources/${resource}`,
|
||||
);
|
||||
return response.json();
|
||||
} catch (_e) {
|
||||
return [];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user