Spaces:
Running
Running
Commit
•
23b8f32
1
Parent(s):
1e16a1f
include access token in payload
Browse files
src/routes/api/vote/+server.ts
CHANGED
@@ -13,6 +13,8 @@ export const POST: RequestHandler = async ({ request }) => {
|
|
13 |
}
|
14 |
|
15 |
const payload = await request.json();
|
|
|
|
|
16 |
const url = `https://dylanebert-3d-arena-backend.hf.space/vote`;
|
17 |
// const url = `http://localhost:8000/vote`;
|
18 |
|
|
|
13 |
}
|
14 |
|
15 |
const payload = await request.json();
|
16 |
+
payload.access_token = accessToken;
|
17 |
+
|
18 |
const url = `https://dylanebert-3d-arena-backend.hf.space/vote`;
|
19 |
// const url = `http://localhost:8000/vote`;
|
20 |
|