diff --git a/public/jsonapi.php b/public/jsonapi.php
index ba73885a3ccac4089dcd9a3903321896a3ace0cd..4b2ba4bfef3676f1efb9f90398568d8b15a7f2a1 100644
--- a/public/jsonapi.php
+++ b/public/jsonapi.php
@@ -1,13 +1,14 @@
 <?php
 
-use DI\ContainerBuilder;
 use Slim\Factory\AppFactory;
 
 require '../lib/bootstrap.php';
-require '../composer/autoload.php';
 
 \StudipAutoloader::addAutoloadPath($GLOBALS['STUDIP_BASE_PATH'] . DIRECTORY_SEPARATOR . 'vendor/oauth-php/library/');
 
+// Set base url for URLHelper class
+URLHelper::setBaseUrl($GLOBALS['CANONICAL_RELATIVE_PATH_STUDIP']);
+
 page_open([
     'sess' => 'Seminar_Session',
     'auth' => 'Seminar_Default_Auth',
@@ -15,9 +16,6 @@ page_open([
     'user' => 'Seminar_User',
 ]);
 
-// Set base url for URLHelper class
-URLHelper::setBaseUrl($GLOBALS['CANONICAL_RELATIVE_PATH_STUDIP']);
-
 // Instantiate the app
 $container = app();
 AppFactory::setContainer($container);