Skip to content

Latest commit

 

History

History
27 lines (22 loc) · 1.18 KB

README.md

File metadata and controls

27 lines (22 loc) · 1.18 KB

game-keeper

Light node js server providing rest api for some games

Build Status Coverage Status Inline docs

API

Endpoint Description
GET /api/score/max
GET /api/score/top
GET /api/score/level/(level)/max
GET /api/score/player/(playername)/max
PUT /api/score { "playername": "player1", "player": "skin1", "level": 1, "score": 7732 }
POST /api/score/reset { "securitycheck": "password"}

Envrionnement variable

Name Description Example
CORS Manage Cross-origin resource sharing http://game.ultimateplateform.v1kings.io
PORT Server port 7312
CONTEXTROOT URL context root /api
DATA_DIR Directory to store dabase file data/
PASSWORD Password used ti reset all score game_keeper