Remove default endpoint from config file
Change-Id: I1bc5ac2b0972d149e217898d28111bf5c7a7e89d
diff --git a/lib/Kalamar.pm b/lib/Kalamar.pm
index f5a111d..9ec798e 100644
--- a/lib/Kalamar.pm
+++ b/lib/Kalamar.pm
@@ -74,10 +74,6 @@
);
};
- unless ($conf->{api_path} || $ENV{KALAMAR_API}) {
- $self->log->warn('Kalamar-api_path not defined in configuration');
- };
-
$self->sessions->cookie_name('kalamar');
# Require HTTPS
@@ -139,8 +135,8 @@
}
);
- # API is not yet set - define
- $conf->{api_path} //= $ENV{KALAMAR_API};
+ # API is not yet set - define the default Kustvakt api endpoint
+ $conf->{api_path} //= $ENV{KALAMAR_API} || 'https://korap.ids-mannheim.de/api/';
$conf->{api_version} //= $API_VERSION;
# Add development path
@@ -343,7 +339,7 @@
=head2 COPYRIGHT AND LICENSE
-Copyright (C) 2015-2020, L<IDS Mannheim|http://www.ids-mannheim.de/>
+Copyright (C) 2015-2021, L<IDS Mannheim|http://www.ids-mannheim.de/>
Author: L<Nils Diewald|http://nils-diewald.de/>
Kalamar is developed as part of the L<KorAP|http://korap.ids-mannheim.de/>