w2v-server: make getSimilarProfiles available from outside the intranet
diff --git a/w2v-server.pl b/w2v-server.pl
index b1e542f..c8b29f9 100755
--- a/w2v-server.pl
+++ b/w2v-server.pl
@@ -137,6 +137,11 @@
$self->render(data => getSimilarProfilesCached($self, $self->param("w") ? $self->param("w") : $self->req->json), format=>'json');
};
+any '/getSimilarProfiles' => sub {
+ my $self = shift;
+ $self->render(data => getSimilarProfilesCached($self, $self->param("w") ? $self->param("w") : $self->req->json), format=>'json');
+};
+
get '*/img/*' => sub {
my $c = shift;
my $url = $c->req->url;