The backend for Anatidae.
- NodeJS, npm
npm install
Start server with node server.js
-
/api/?game={gameName}
: GET- Returns
{error: [error description] }
on bad requests (400) - Returns the highscores as an array of objects
{name:string, score:number}
.
- Returns
-
/api/?game={gameName}
: POST (Body:{name:string, score:number}
)- Returns
{error: [error description] }
on bad requests (400) - Returns
{success: false}
if existing highscore is higher - Returns
{success: true}
on success
- Returns