p2sr / portal2-cm-boards-v2

A from-scratch rewrite of the Portal 2 Challenge mode Leaderboards using Rust (actix.rs) and JS (React).
https://danielbatesj.github.io/Portal2-Boards-Rust-API-Docs/docs/target/doc/doc/server/index.html
Apache License 2.0
3 stars 6 forks source link

Switching the backend binary to a REST service. #24

Closed DanielBatesJ closed 2 years ago

DanielBatesJ commented 2 years ago

This PR merges the changes to the backend from being a binay called by the web-server, to being a stand-alone REST API. Calls to the REST API are blocking, meaning they block the asynchronous executor on the side of the service. This way you cannot call the service in such a way where a data-race might occur. This API exists for internal use only by the primary web-server, and is not currently documented.