Moved examples into example directory

Moved routes to separate file
Used route constants
This commit is contained in:
2022-07-26 10:32:11 +02:00
parent de1484e9a1
commit 8496f5cfbe
18 changed files with 93 additions and 42 deletions

View File

@@ -0,0 +1,6 @@
// A mock function to mimic making an async request for data
export function fetchCount(amount = 1) {
return new Promise<{ data: number }>((resolve) =>
setTimeout(() => resolve({ data: amount }), 500),
);
}