repository to manage all files for 1_2_oder_3 interaction game for Inf2/2 Interaktionen SoSe23 from Engert, Caliskan and Bachiri
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

api.js 492B

12345678910111213141516171819202122232425262728293031
  1. import {createContext} from "react";
  2. export function postTeamsize(data) {
  3. return fetch("URL:PORT/TEAMSIZE",{
  4. methods: 'POST',
  5. headers: {
  6. "Content-Type": "application/json"
  7. },
  8. body: JSON.stringify(data)
  9. })
  10. .then(response => response.json())
  11. }
  12. export function getConnection() {
  13. }
  14. export function getQuestionandPrint() {
  15. }
  16. export function getScoreboard() {
  17. }
  18. export function getCheck() {
  19. }
  20. export function getReset() {
  21. }