mirror of
https://github.com/friendica/friendica
synced 2024-12-23 03:20:15 +00:00
26 lines
415 B
PHP
26 lines
415 B
PHP
|
<?php
|
||
|
|
||
|
function amcd_content(&$a) {
|
||
|
header("Content-type: text/json");
|
||
|
echo <<< EOT
|
||
|
{
|
||
|
"methods": {
|
||
|
"username-password-form": {
|
||
|
"connect": {
|
||
|
"method":"POST",
|
||
|
"path":"/login",
|
||
|
"params": {
|
||
|
"username":"login-name",
|
||
|
"password":"password"
|
||
|
}
|
||
|
},
|
||
|
"disconnect": {
|
||
|
"method":"GET",
|
||
|
"path":"/logout"
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
EOT;
|
||
|
killme();
|
||
|
}
|