stadia-avatar/classes/Message.php
Victor Westerlund ef58aa530e Added DB interface and get/update endpoints.
The bot userscript is now fully operational, the only thing left to do is to make it send the actual payload we need for the endpoint.

Added setup for MySQL database.

Added DB interface with a concept-stage set/update endpoint.
2021-02-04 17:50:24 +01:00

8 lines
No EOL
197 B
PHP

<?php
header("Content-Type: application/json");
function error($code,$message) {
http_response_code($code);
die("{\"status\":\"error\",\"code\":\"${code}\",\"message\":\"${message}\"}");
}