mirror of
https://git.code.sf.net/p/seeddms/code
synced 2026-02-02 14:41:55 +00:00
set base path propperly
This commit is contained in:
parent
5fd791bbf6
commit
35e1cc2fa9
|
|
@ -3281,7 +3281,7 @@ $container->set('notifier', $notifier);
|
|||
$container->set('authenticator', $authenticator);
|
||||
$container->set('translator', $translator);
|
||||
|
||||
$app->setBasePath($settings->_httpRoot."restapi/index.php");
|
||||
$app->setBasePath(rtrim($settings->_httpRoot, '/')."/restapi/index.php");
|
||||
|
||||
$app->add(new RestapiAuthMiddleware($container, $app->getResponseFactory()));
|
||||
|
||||
|
|
|
|||
|
|
@ -61,6 +61,8 @@ if (true) {
|
|||
$container->set('authenticator', $authenticator);
|
||||
$container->set('translator', $translator);
|
||||
|
||||
$app->setBasePath(rtrim($settings->_httpRoot, '/'));
|
||||
|
||||
if (isset($GLOBALS['SEEDDMS_HOOKS']['initDMS'])) {
|
||||
foreach ($GLOBALS['SEEDDMS_HOOKS']['initDMS'] as $hookObj) {
|
||||
if (method_exists($hookObj, 'addMiddleware')) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user