File tree 1 file changed +5
-7
lines changed
1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change 3
3
const API_URL = " https://catalyst-order-server-0140d799e2f7.herokuapp.com/" ;
4
4
5
5
async function getOrders(): Promise <GetOrdersEvent > {
6
- const orderServerResponse = await fetch (API_URL + " orders/" , {
7
- method: " post" ,
8
- });
6
+ const orderServerResponse = await fetch (API_URL + " orders/" );
9
7
const fetchedOrders = (await orderServerResponse .json ()) as GetOrdersEvent ;
10
8
11
9
return fetchedOrders ;
14
12
let request: undefined | Promise <GetOrdersEvent > = undefined ;
15
13
</script >
16
14
17
- <!-- < a
15
+ <a
18
16
style =" font: inherit;align-items: flex-start;
19
17
text-align: center;
20
18
cursor: default;
49
47
rel =" noopener noreferrer"
50
48
>
51
49
getOrders()
52
- </a> -->
50
+ </a >
53
51
54
- {#await request }
52
+ <!-- {#await request}
55
53
<button disabled>Waiting</button>
56
54
{:then}
57
55
<button
68
66
{#await request then quotes}
69
67
<div>{JSON.stringify(quotes)}</div>
70
68
{/await}
71
- {/if }
69
+ {/if} -->
You can’t perform that action at this time.
0 commit comments