https://reisub.nsupdate.info/git
/
friendica.git
/
.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Merge pull request #6336 from MrPetovan/bug/6334-get-app-namespace
[friendica.git/.git]
/
mod
/
amcd.php
1
<?php
2
3
function amcd_content()
4
{
5
echo <<< JSON
6
{
7
"version":1,
8
"sessionstatus":{
9
"method":"GET",
10
"path":"/session"
11
},
12
"auth-methods": {
13
"username-password-form": {
14
"connect": {
15
"method":"POST",
16
"path":"/login",
17
"params": {
18
"username":"login-name",
19
"password":"password"
20
},
21
"onsuccess": { "action":"reload" }
22
},
23
"disconnect": {
24
"method":"GET",
25
"path":"\/logout"
26
}
27
}
28
}
29
"methods": {
30
"username-password-form": {
31
"connect": {
32
"method":"POST",
33
"path":"\/login",
34
"params": {
35
"username":"login-name",
36
"password":"password"
37
},
38
"onsuccess": { "action":"reload" }
39
},
40
"disconnect": {
41
"method":"GET",
42
"path":"\/logout"
43
}
44
}
45
}
46
}
47
JSON;
48
exit();
49
}