summaryrefslogtreecommitdiff
path: root/lib/Travelynx.pm
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2019-05-29 20:01:52 +0200
committerDaniel Friesel <derf@finalrewind.org>2019-05-29 20:01:52 +0200
commit155f9f39cc83fcf83e5dd48ae58b09736281c912 (patch)
tree6d181034a0f0599b9c5929e5db31d2f25435281c /lib/Travelynx.pm
parent146b3a2682c7c91984b15bfa34325558201203ba (diff)
use journey-specific status links -> one twitter card per journey
Diffstat (limited to 'lib/Travelynx.pm')
-rwxr-xr-xlib/Travelynx.pm2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Travelynx.pm b/lib/Travelynx.pm
index 209a471..19d6edf 100755
--- a/lib/Travelynx.pm
+++ b/lib/Travelynx.pm
@@ -2177,7 +2177,9 @@ sub startup {
$r->get('/register')->to('account#registration_form');
$r->get('/reg/:id/:token')->to('account#verify');
$r->get('/status/:name')->to('traveling#user_status');
+ $r->get('/status/:name/:ts')->to('traveling#user_status');
$r->get('/ajax/status/:name')->to('traveling#public_status_card');
+ $r->get('/ajax/status/:name/:ts')->to('traveling#public_status_card');
$r->post('/action')->to('traveling#log_action');
$r->post('/geolocation')->to('traveling#geolocation');
$r->post('/list_departures')->to('traveling#redirect_to_station');