From 3dd4bf9955cb70feb508b3b56ad4c025b938c4ad Mon Sep 17 00:00:00 2001 From: zotlabs Date: Fri, 30 Dec 2016 02:45:16 -0800 Subject: [PATCH] move api version call back to core --- include/api_zot.php | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/include/api_zot.php b/include/api_zot.php index d1979c3ae..fe3a95d25 100644 --- a/include/api_zot.php +++ b/include/api_zot.php @@ -1,6 +1,8 @@ ' . "\r\n" . '' . Zotlabs\Lib\System::get_project_version() . '' . "\r\n"; + killme(); + } + elseif($type === 'json') { + header('Content-type: application/json'); + echo '"' . Zotlabs\Lib\System::get_project_version() . '"'; + killme(); + } + } + + + /* * Red basic channel export */