From d0c061569df106eb2c1c40b0e800b70b6375b95f Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Tue, 2 Aug 2022 22:22:10 +0200 Subject: [PATCH] Traveling: Rename log_action to travel_action --- lib/Travelynx.pm | 2 +- lib/Travelynx/Controller/Traveling.pm | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Travelynx.pm b/lib/Travelynx.pm index e39cf45..3612fd0 100755 --- a/lib/Travelynx.pm +++ b/lib/Travelynx.pm @@ -2298,7 +2298,7 @@ sub startup { $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'); + $r->post('/action')->to('traveling#travel_action'); $r->post('/geolocation')->to('traveling#geolocation'); $r->post('/list_departures')->to('traveling#redirect_to_station'); $r->post('/login')->to('account#do_login'); diff --git a/lib/Travelynx/Controller/Traveling.pm b/lib/Travelynx/Controller/Traveling.pm index dc27ca9..86d29c4 100755 --- a/lib/Travelynx/Controller/Traveling.pm +++ b/lib/Travelynx/Controller/Traveling.pm @@ -694,7 +694,7 @@ sub geolocation { } } -sub log_action { +sub travel_action { my ($self) = @_; my $params = $self->req->json;