X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=index.php;h=bb1debd3f515bcd5bf2a3b892b3b60890812c092;hb=67a1d5d8237d200e6b85a4868f3b560ade5607b4;hp=427eb23941cc319840afc43d676795edaba345b7;hpb=b3051a6aae446e063c3b6fa4a6a600357a9f24af;p=github%2Fshaarli%2FShaarli.git diff --git a/index.php b/index.php index 427eb239..bb1debd3 100644 --- a/index.php +++ b/index.php @@ -1949,8 +1949,8 @@ function install($conf) $conf->set( 'api.secret', generate_api_secret( - $this->conf->get('credentials.login'), - $this->conf->get('credentials.salt') + $conf->get('credentials.login'), + $conf->get('credentials.salt') ) ); try { @@ -2231,8 +2231,8 @@ $app = new \Slim\App($container); // REST API routes $app->group('/api/v1', function() { - $this->get('/info', '\Api\Controllers\Info:getInfo'); -})->add('\Api\ApiMiddleware'); + $this->get('/info', '\Shaarli\Api\Controllers\Info:getInfo'); +})->add('\Shaarli\Api\ApiMiddleware'); $response = $app->run(true); // Hack to make Slim and Shaarli router work together: