mirror of
https://codeberg.org/vlw/stadia-avatar.git
synced 2025-09-13 23:23:40 +02:00
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.
8 lines
No EOL
197 B
PHP
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}\"}");
|
|
} |