From d54f901edfde40ea67d7da0c39758ba519895885 Mon Sep 17 00:00:00 2001 From: marcus Date: Wed, 24 Sep 2008 15:27:49 +0000 Subject: git-svn-id: https://code.elgg.org/elgg/trunk@2116 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/api.php | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'engine/lib') 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; -- cgit v1.2.3