aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs
diff options
context:
space:
mode:
authorAndrew Manning <tamanning@zoho.com>2018-02-18 20:24:41 -0500
committerAndrew Manning <tamanning@zoho.com>2018-02-18 20:24:41 -0500
commit7d0c1bb737f3683cd770ebd757d938f39a9b55ef (patch)
treea912d2166429224cb50ec0250670cf50fbdd958c /Zotlabs
parentc444e40c016c0faaec604335093b19661b3585b7 (diff)
downloadvolse-hubzilla-7d0c1bb737f3683cd770ebd757d938f39a9b55ef.tar.gz
volse-hubzilla-7d0c1bb737f3683cd770ebd757d938f39a9b55ef.tar.bz2
volse-hubzilla-7d0c1bb737f3683cd770ebd757d938f39a9b55ef.zip
Created test vehicle module oauth2test
Diffstat (limited to 'Zotlabs')
-rw-r--r--Zotlabs/Module/Oauth2test.php43
1 files changed, 43 insertions, 0 deletions
diff --git a/Zotlabs/Module/Oauth2test.php b/Zotlabs/Module/Oauth2test.php
new file mode 100644
index 000000000..14aa6137a
--- /dev/null
+++ b/Zotlabs/Module/Oauth2test.php
@@ -0,0 +1,43 @@
+<?php
+
+namespace Zotlabs\Module;
+
+class Oauth2test extends \Zotlabs\Web\Controller {
+
+ function get() {
+
+ $o .= replace_macros(get_markup_template('oauth2test.tpl'), array(
+ '$baseurl' => z_root(),
+ '$endpoints' => array(
+ array(
+ 'oauth2test',
+ array(
+ array(
+ 'action', 'create_db'
+ )
+ ),
+ 'oauth2test_create_db',
+ 'Create the OAuth2 database tables'
+ )
+ )
+ ));
+
+ return $o;
+ }
+
+ function post() {
+
+ logger(json_encode($_POST), LOGGER_DEBUG);
+
+ switch ($_POST['action']) {
+ case 'create_db':
+ logger('Creating database tables...', LOGGER_DEBUG);
+ break;
+
+ default:
+ break;
+ }
+
+ }
+
+}