Add fake API to allow for testing of requests

This commit is contained in:
Michał Gdula 2024-04-27 19:23:06 +01:00
parent 2686fb904c
commit 782c88d082
7 changed files with 86 additions and 46 deletions

View file

@ -1,4 +1,4 @@
import Items from '%/lib/testData.js';
import Items from '%/lib/test-data.js';
export async function getPopularToday() {
const res = await fetch("/api/items")