Skip to content

Commit

Permalink
installed /api/ fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Vitexus committed Jan 16, 2025
1 parent 5ace6ea commit fbaa52e
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
3 changes: 3 additions & 0 deletions debian/conf/multiflexi.conf
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,7 @@ Alias /multiflexi /usr/share/multiflexi

</Directory>

<Directory "/usr/share/multiflexi/api">
AllowOverride All
</Directory>

2 changes: 1 addition & 1 deletion debian/rules
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,4 @@ override_dh_install:
sed -i "/require_once __DIR__/crequire_once '/var/lib/composer/multiflexi/autoload.php'; " debian/multiflexi-api/usr/share/multiflexi/api/index.php
sed -i "/loadConfig/c\\\\\Ease\\\\Shared::singleton()->loadConfig('/etc/multiflexi/multiflexi.env', true);" debian/multiflexi-api/usr/share/multiflexi/api/index.php
sed -i "/setBasePath/c\$$app->setBasePath('/api');" debian/multiflexi-api/usr/share/multiflexi/api/index.php
sed -i "s/\/MultiFlexi\/src//" debian/multiflexi-api/usr/share/multiflexi/api/index.php
sed -i "s/\/MultiFlexi\/src/\/multiflexi/" debian/multiflexi-api/usr/share/multiflexi/api/index.php
7 changes: 5 additions & 2 deletions src/api/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,11 @@

// Instantiate the app
$app = Bridge::create($container);
$app->setBasePath('/MultiFlexi/src/api');
$path = '/MultiFlexi/src/api/VitexSoftware/MultiFlexi/1.0.0/';

$basePath = '/MultiFlexi/src/api';

$app->setBasePath($basePath);
$path = $basePath . '/VitexSoftware/MultiFlexi/1.0.0/';

// Register middleware
$middleware = new RegisterMiddlewares();
Expand Down
2 changes: 1 addition & 1 deletion src/main.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@

WebPage::singleton()->container->addItem(new \Ease\TWB4\Panel(_('Last 20 Jobs'), 'default', new JobHistoryTable(), new DbStatus()));

WebPage::singleton()->addItem(new PageBottom('jobs/'));
WebPage::singleton()->addItem(new PageBottom('jobs'));

WebPage::singleton()->addJavaScript(<<<'EOD'
Expand Down

0 comments on commit fbaa52e

Please sign in to comment.