aboutsummaryrefslogtreecommitdiffstats
path: root/mod/amcd.php
diff options
context:
space:
mode:
Diffstat (limited to 'mod/amcd.php')
-rw-r--r--mod/amcd.php26
1 files changed, 26 insertions, 0 deletions
diff --git a/mod/amcd.php b/mod/amcd.php
new file mode 100644
index 000000000..01c6b92da
--- /dev/null
+++ b/mod/amcd.php
@@ -0,0 +1,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();
+} \ No newline at end of file