Improved JWT handling and fixed test server behaviour
Change-Id: I169dbaa3afbb059e2b2c99bc2fc0f5f417ad57a5
diff --git a/lib/Kalamar.pm b/lib/Kalamar.pm
index 64220aa..1348219 100644
--- a/lib/Kalamar.pm
+++ b/lib/Kalamar.pm
@@ -63,12 +63,18 @@
# Configuration framework
$self->plugin('Config');
+ $self->log->info('Mode is ' . $self->mode);
+
# Start fixture server
if ($self->mode eq 'test') {
+
+ $self->log->info('Mount test server');
+
$self->plugin(Mount => {
'/api/v0.1' => $self->home->child('lib/Kalamar/Apps/test_backend.pl')
});
+ # Fix api endpoint
$self->config('Kalamar')->{api} = "/api/v0.1/";
};