Takes API version from Kalamar config
Change-Id: I24fe855fcef8f9de56c224c037ca0356693deeb3
diff --git a/templates/doc/api.html.ep b/templates/doc/api.html.ep
index 1be1fe1..77a1d56 100644
--- a/templates/doc/api.html.ep
+++ b/templates/doc/api.html.ep
@@ -7,8 +7,8 @@
All API endpoints either use KoralQuery or are (more or less) REST-ful web APIs.</p>
<p>All publicly available API endpoints (partially experimental) including their requests and responses are described in the <%= ext_link_to 'GitHub Wiki', "https://github.com/KorAP/Kustvakt/wiki" %> of <%= embedded_link_to 'doc', 'Kustvakt', 'korap', 'kustvakt' %>.</p>
-
-% my $api_url = $c->url_for('proxy' => (apiv => $Kalamar::API_VERSION))->to_abs->scheme('https');
+% my $api_version = $c->app->config('Kalamar')->{api_version};
+% my $api_url = $c->url_for('proxy' => (apiv => $api_version))->to_abs->scheme('https');
% $api_url->path->trailing_slash(1);
%if ($c->app->config('Kalamar')->{openapi}) {