2010-11-11 11:49:28 +01:00
|
|
|
<?php
|
2016-02-07 15:11:34 +01:00
|
|
|
|
2017-01-09 13:12:54 +01:00
|
|
|
function amcd_content(App $a) {
|
2017-04-30 06:01:26 +02:00
|
|
|
echo <<< JSON
|
2010-11-11 11:49:28 +01:00
|
|
|
{
|
2010-11-11 23:53:39 +01:00
|
|
|
"version":1,
|
|
|
|
"sessionstatus":{
|
|
|
|
"method":"GET",
|
|
|
|
"path":"/session"
|
|
|
|
},
|
|
|
|
"auth-methods": {
|
2010-11-11 11:49:28 +01:00
|
|
|
"username-password-form": {
|
|
|
|
"connect": {
|
|
|
|
"method":"POST",
|
|
|
|
"path":"/login",
|
|
|
|
"params": {
|
|
|
|
"username":"login-name",
|
|
|
|
"password":"password"
|
2010-11-11 23:53:39 +01:00
|
|
|
},
|
|
|
|
"onsuccess": { "action":"reload" }
|
|
|
|
},
|
|
|
|
"disconnect": {
|
|
|
|
"method":"GET",
|
|
|
|
"path":"\/logout"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
"methods": {
|
|
|
|
"username-password-form": {
|
|
|
|
"connect": {
|
|
|
|
"method":"POST",
|
|
|
|
"path":"\/login",
|
|
|
|
"params": {
|
|
|
|
"username":"login-name",
|
|
|
|
"password":"password"
|
|
|
|
},
|
|
|
|
"onsuccess": { "action":"reload" }
|
2010-11-11 11:49:28 +01:00
|
|
|
},
|
|
|
|
"disconnect": {
|
|
|
|
"method":"GET",
|
2010-11-11 23:53:39 +01:00
|
|
|
"path":"\/logout"
|
2010-11-11 11:49:28 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2017-04-30 06:01:26 +02:00
|
|
|
JSON;
|
|
|
|
killme();
|
2016-02-07 15:11:34 +01:00
|
|
|
}
|