summaryrefslogtreecommitdiff
path: root/lib/Travelynx.pm
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2020-09-03 22:27:50 +0200
committerDaniel Friesel <derf@finalrewind.org>2020-09-03 22:27:50 +0200
commit482fa975b5f50064deb57b651019908c17b71f47 (patch)
tree118e0247f29c058f61e53db5716df1c1d848d898 /lib/Travelynx.pm
parentea0fe3ea3e72eb690dd5a92eb4831523be740d08 (diff)
add public profile page and public journey details
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 232cb46..613fbc3 100755
--- a/lib/Travelynx.pm
+++ b/lib/Travelynx.pm
@@ -2685,6 +2685,8 @@ sub startup {
$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->get('/p/:name')->to('traveling#public_profile');
+ $r->get('/p/:name/j/:id')->to('traveling#public_journey_details');
$r->post('/api/v1/import')->to('api#import_v1');
$r->post('/api/v1/travel')->to('api#travel_v1');
$r->post('/action')->to('traveling#log_action');