stadia-avatar/server/classes/Message.php
Victor Westerlund 74b2635755 New folder structure for extension
Separated client- and server-side features into seperate root folders. Since Stadia Avatar now has two versions (Userscript and Chrome extension).

Added core extension functionality.

Created a page constructor for extension popup. High probability that I will create a seperate repo for this feature, as it's pretty neat and very useful for future extensions.
2021-02-08 04:50:47 +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}\"}");
}