an api to allow for gameSpace js to interact with backend