change post api endpoint
This commit is contained in:
@@ -143,14 +143,13 @@ import Layout from "../../layouts/Layout.astro";
|
||||
console.log(checkboxValues)
|
||||
// Move the userData object creation inside the saveUserData function if needed
|
||||
let userData = {
|
||||
'status': 'published',
|
||||
'user_id': 'tick-v1@beanstalkedu.com',
|
||||
'game_name': gameName,
|
||||
'game_open': formatedDateTime,
|
||||
'tick_result': checkboxValues,
|
||||
'user': 'tick-v1@beanstalkedu.com',
|
||||
'game_name': gameName,
|
||||
'starts': formatedDateTime,
|
||||
'game_start' : gameStartTime,
|
||||
};
|
||||
|
||||
fetch(`https://management.beanstalkedu.com/items/game_result`, {
|
||||
fetch(`https://2016.dev2-cs.siliconpin.com/save/`, {
|
||||
method: 'POST',
|
||||
headers: {
|
||||
'Content-Type': 'application/json'
|
||||
@@ -301,7 +300,7 @@ import Layout from "../../layouts/Layout.astro";
|
||||
'game_open': formatedDateTime,
|
||||
};
|
||||
|
||||
fetch(`https://management.beanstalkedu.com/items/game_result`, {
|
||||
fetch(`https://2016.dev2-cs.siliconpin.com/save/`, {
|
||||
method: 'POST',
|
||||
headers: {
|
||||
'Content-Type': 'application/json'
|
||||
|
||||
Reference in New Issue
Block a user