mirror of
https://github.com/withastro/astro.git
synced 2025-01-20 22:12:38 -05:00
[ci] format
This commit is contained in:
parent
7fd49f1887
commit
3575a10634
1 changed files with 1 additions and 1 deletions
|
@ -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`, {
|
await fetch(`${location.origin}/api/cart`, {
|
||||||
credentials: 'same-origin',
|
credentials: 'same-origin',
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
|
|
Loading…
Add table
Reference in a new issue