diff options
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -1949,8 +1949,8 @@ function install($conf) | |||
1949 | $conf->set( | 1949 | $conf->set( |
1950 | 'api.secret', | 1950 | 'api.secret', |
1951 | generate_api_secret( | 1951 | generate_api_secret( |
1952 | $this->conf->get('credentials.login'), | 1952 | $conf->get('credentials.login'), |
1953 | $this->conf->get('credentials.salt') | 1953 | $conf->get('credentials.salt') |
1954 | ) | 1954 | ) |
1955 | ); | 1955 | ); |
1956 | try { | 1956 | try { |
@@ -2231,8 +2231,8 @@ $app = new \Slim\App($container); | |||
2231 | 2231 | ||
2232 | // REST API routes | 2232 | // REST API routes |
2233 | $app->group('/api/v1', function() { | 2233 | $app->group('/api/v1', function() { |
2234 | $this->get('/info', '\Api\Controllers\Info:getInfo'); | 2234 | $this->get('/info', '\Shaarli\Api\Controllers\Info:getInfo'); |
2235 | })->add('\Api\ApiMiddleware'); | 2235 | })->add('\Shaarli\Api\ApiMiddleware'); |
2236 | 2236 | ||
2237 | $response = $app->run(true); | 2237 | $response = $app->run(true); |
2238 | // Hack to make Slim and Shaarli router work together: | 2238 | // Hack to make Slim and Shaarli router work together: |