We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 48640e1 commit a35a2ceCopy full SHA for a35a2ce
web-app/src/pages/api.tsx
@@ -3,6 +3,9 @@ import { UserPreferences } from "./Preferences";
3
const API_URL = process.env.NEXT_PUBLIC_API_URL;
4
5
export const getMatches = async (token: string) => {
6
+ // make sure the API is up
7
+ await fetch(`${API_URL}`);
8
+
9
const response = await fetch(`${API_URL}/matches`, {
10
method: "GET",
11
headers: {
0 commit comments