change post api endpoint
This commit is contained in:
@@ -324,13 +324,13 @@ import Layout from '../../layouts/Layout.astro';
|
||||
const URL = window.location.href;
|
||||
const gameName = URL.split('/');
|
||||
let userData = {
|
||||
'status' : 'published',
|
||||
'user_id': 'drag@beanstalkedu.com',
|
||||
'game_name': gameName[3],
|
||||
'game_open': formattedDateTime,
|
||||
'user': 'drawing@beanstalkedu.com',
|
||||
'game_name': gameName[3],
|
||||
'starts': formattedDateTime,
|
||||
// 'game_start' : gameStartTime,
|
||||
};
|
||||
function submitUserData() {
|
||||
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