mirror of
https://github.com/nuxsmin/sysPass.git
synced 2026-03-09 18:06:54 +01:00
chore: Refactor Bootstrap module initialization and Config class wiring.
Signed-off-by: Rubén D <nuxsmin@syspass.org>
This commit is contained in:
6
api.php
6
api.php
@@ -22,7 +22,11 @@
|
||||
* along with sysPass. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
use SP\Bootstrap;
|
||||
|
||||
const APP_ROOT = __DIR__;
|
||||
const APP_MODULE = 'api';
|
||||
|
||||
require APP_ROOT . DIRECTORY_SEPARATOR . 'lib' . DIRECTORY_SEPARATOR . 'Base.php';
|
||||
$dic = require APP_ROOT.DIRECTORY_SEPARATOR.'lib'.DIRECTORY_SEPARATOR.'Base.php';
|
||||
|
||||
Bootstrap::runApi($dic);
|
||||
|
||||
Reference in New Issue
Block a user