summaryrefslogtreecommitdiff
path: root/index.pl
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2019-03-16 21:33:19 +0100
committerDaniel Friesel <derf@finalrewind.org>2019-03-16 21:33:19 +0100
commitc8f9fc901b440cb5f99fa531c6884af2b997ad97 (patch)
tree3065e5d1c41f6cc0af61045b7b6468503b6d0c85 /index.pl
parent26da2b598c92e22b6c57a391acea26d08ff4f767 (diff)
allow manual input of station name
Closes #1
Diffstat (limited to 'index.pl')
-rwxr-xr-xindex.pl7
1 files changed, 7 insertions, 0 deletions
diff --git a/index.pl b/index.pl
index 066cf0b..467eed4 100755
--- a/index.pl
+++ b/index.pl
@@ -988,6 +988,13 @@ post '/geolocation' => sub {
};
+post '/list_departures' => sub {
+ my ($self) = @_;
+ my $station = $self->param('station');
+
+ $self->redirect_to("/s/${station}");
+};
+
get '/api/v0/:action/:token' => sub {
my ($self) = @_;