diff options
author | 2022-03-29 13:18:35 +0000 | |
---|---|---|
committer | 2022-03-29 13:18:35 +0000 | |
commit | 3575a1063444f3d74f53fec8ece5e69b276f8f7e (patch) | |
tree | 0bd992ebd39d5d4f7d3907246713b114a4c468e7 | |
parent | 7fd49f1887052b4822dc951258840da5d7a9b72b (diff) | |
download | astro-3575a1063444f3d74f53fec8ece5e69b276f8f7e.tar.gz astro-3575a1063444f3d74f53fec8ece5e69b276f8f7e.tar.zst astro-3575a1063444f3d74f53fec8ece5e69b276f8f7e.zip |
[ci] format
-rw-r--r-- | examples/ssr/src/api.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/ssr/src/api.ts b/examples/ssr/src/api.ts index 8a903b217..82c82a190 100644 --- a/examples/ssr/src/api.ts +++ b/examples/ssr/src/api.ts @@ -60,7 +60,7 @@ export async function getCart(incomingReq: Request): Promise<Cart> { }); } -export async function addToUserCart( id: number | string, name: string): Promise<void> { +export async function addToUserCart(id: number | string, name: string): Promise<void> { await fetch(`${location.origin}/api/cart`, { credentials: 'same-origin', method: 'POST', |