Add getVersion
Change-Id: Iddace1378a02dac8ee5ce4ab717689a319758387
diff --git a/script/derekovecs-server b/script/derekovecs-server
index e8b1c1b..21d7d81 100755
--- a/script/derekovecs-server
+++ b/script/derekovecs-server
@@ -280,6 +280,16 @@
$self->render(data => $calendar, format=>'text');
};
+any '/getVersion' => sub {
+ my $self = shift;
+ $self->render(data => $VERSION, format=>'text');
+};
+
+any '*/getVersion' => sub {
+ my $self = shift;
+ $self->render(data => $VERSION, format=>'text');
+};
+
get '*/img/*' => sub {
my $c = shift;
my $url = $c->req->url;