aboutsummaryrefslogtreecommitdiffstats
path: root/mod/amcd.php
blob: 01c6b92da540049d1b77efa176faf3e2803cc0b6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<?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();
}