w2v-server: fix GET method for classic collocators from proxy
diff --git a/w2v-server.pl b/w2v-server.pl
index d580925..26bea4b 100755
--- a/w2v-server.pl
+++ b/w2v-server.pl
@@ -89,14 +89,14 @@
$self->render(json => $vec);
};
-any '/derekovecs/getClassicCollocators' => sub {
+any '*/getClassicCollocators' => sub {
my $self = shift;
$self->render(data => getClassicCollocators($self->param("w") ? $self->param("w") : $self->req->json), format=>'json');
};
-post '/getClassicCollocators' => sub {
+any '/getClassicCollocators' => sub {
my $self = shift;
- $self->render(data => getClassicCollocators($self->req->json), format=>'json');
+ $self->render(data => getClassicCollocators($self->param("w") ? $self->param("w") : $self->req->json), format=>'json');
};
get '*/img/*' => sub {