aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/api.php
diff options
context:
space:
mode:
Diffstat (limited to 'engine/lib/api.php')
-rw-r--r--engine/lib/api.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/engine/lib/api.php b/engine/lib/api.php
index 04a033825..8e176d737 100644
--- a/engine/lib/api.php
+++ b/engine/lib/api.php
@@ -1087,12 +1087,21 @@
// Initialisation & pagehandler ///////////////////////////////////////////////////////////
+ /**
+ * Initialise the API subsystem.
+ *
+ */
function api_init()
{
// Register a page handler, so we can have nice URLs
register_page_handler('api','api_endpoint_handler');
}
+ /**
+ * Register a page handler for the various API endpoints.
+ *
+ * @param array $page
+ */
function api_endpoint_handler($page)
{
global $CONFIG;