153 $httpd->add_handler('login', 'function', 'greyhound_login_page'); |
153 $httpd->add_handler('login', 'function', 'greyhound_login_page'); |
154 $httpd->add_handler('logout', 'function', 'greyhound_logout'); |
154 $httpd->add_handler('logout', 'function', 'greyhound_logout'); |
155 $httpd->add_handler('config', 'function', 'greyhound_config'); |
155 $httpd->add_handler('config', 'function', 'greyhound_config'); |
156 $httpd->add_handler('action.json', 'function', 'ajax_request_handler'); |
156 $httpd->add_handler('action.json', 'function', 'ajax_request_handler'); |
157 $httpd->add_handler('artwork', 'function', 'artwork_request_handler'); |
157 $httpd->add_handler('artwork', 'function', 'artwork_request_handler'); |
|
158 $httpd->add_handler('api', 'function', 'api_request_handler'); |
158 $httpd->add_handler('scripts', 'dir', GREY_ROOT . '/scripts'); |
159 $httpd->add_handler('scripts', 'dir', GREY_ROOT . '/scripts'); |
159 $httpd->add_handler('favicon.ico', 'file', GREY_ROOT . '/amarok_icon.ico'); |
160 $httpd->add_handler('favicon.ico', 'file', GREY_ROOT . '/amarok_icon.ico'); |
160 $httpd->add_handler('apple-touch-icon.png', 'file', GREY_ROOT . '/apple-touch-icon.png'); |
161 $httpd->add_handler('apple-touch-icon.png', 'file', GREY_ROOT . '/apple-touch-icon.png'); |
161 $httpd->add_handler('spacer.gif', 'file', GREY_ROOT . '/spacer.gif'); |
162 $httpd->add_handler('spacer.gif', 'file', GREY_ROOT . '/spacer.gif'); |
162 $httpd->threader->ipc_register('reloadconfig', 'grey_reload_config'); |
163 $httpd->threader->ipc_register('reloadconfig', 'grey_reload_config'); |