Sanae6 / SmoOnlineServer

Official server for Super Mario Odyssey: Online
https://discord.gg/jYCueK2BqD
103 stars 24 forks source link

JSON API #33

Closed Istador closed 1 year ago

Istador commented 1 year ago

I need the API to query live server data for the website. RCL 1 and RCL 2 on the website already use the JSON API to display the current settings and players connected (only updates every 10 minutes).

See the readme for some kind of documentation. There's also a test.sh to easily test the API locally. Server operators need to enable and configure the API in the settings.json manually if they want to use it (and share the token secretly with me, so I can add the token to the website backend).

I also did a few fixes to issues that I found while working on the server. See the commit history and their messages for more details.

Istador commented 1 year ago

use object instead of dynamic

then not.