X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=index.php;h=220847f5ec4f3469af3e2eb32e08b5f6cc2c4ab9;hb=4cf3564d28dc8e4d08a3e64f09ad045ffbde97ae;hp=869f42de1352eafb5ec95bf44de6ca2c1b29855e;hpb=9e6371a6fd2e581790c93a04e0cb2699b8aa0911;p=github%2Fshaarli%2FShaarli.git diff --git a/index.php b/index.php index 869f42de..220847f5 100644 --- a/index.php +++ b/index.php @@ -35,6 +35,9 @@ use Slim\App; $conf = new ConfigManager(); +// Manually override root URL for complex server configurations +define('SHAARLI_ROOT_URL', $conf->get('general.root_url', null)); + // In dev mode, throw exception on any warning if ($conf->get('dev.debug', false)) { // See all errors (for debugging only) @@ -126,7 +129,7 @@ $app->group('/admin', function () { $this->post('/plugins', '\Shaarli\Front\Controller\Admin\PluginsController:save'); $this->get('/token', '\Shaarli\Front\Controller\Admin\TokenController:getToken'); $this->get('/thumbnails', '\Shaarli\Front\Controller\Admin\ThumbnailsController:index'); - + $this->get('/metadata', '\Shaarli\Front\Controller\Admin\MetadataController:ajaxRetrieveTitle'); $this->get('/visibility/{visibility}', '\Shaarli\Front\Controller\Admin\SessionFilterController:visibility'); })->add('\Shaarli\Front\ShaarliAdminMiddleware');