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

@ -5,7 +5,7 @@
import { ArrowUpRight } from "phosphor-svelte";
import MenuList from "%/components/MenuList.svelte";
import { getPopularToday } from "%/lib/api.js";
import { getPopularToday } from "%/lib/test-api.js";
import BannerImage from '/BannerExampleImage.jpg';
let items = getPopularToday();
@ -35,8 +35,8 @@
<div id="contact">
<div id="map"></div>
<div class="container">
<h2>Some Title</h2>
<p>Example text</p>
<h2>Opening Times</h2>
<p>Please make sure to checkout our full calendar, as we have different times during public holiday</p>
<div id="timetable">
<table>
<tr><th>Day</th><th>Opening</th><th>Closing</th></tr>