From a9a7fa4492fecae9b03cc79d960a72d3bfbd3fdc Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Tue, 31 Dec 2019 13:27:14 +0100 Subject: Release Travel API --- lib/Travelynx/Controller/Api.pm | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'lib/Travelynx') diff --git a/lib/Travelynx/Controller/Api.pm b/lib/Travelynx/Controller/Api.pm index b951af4..931d41b 100755 --- a/lib/Travelynx/Controller/Api.pm +++ b/lib/Travelynx/Controller/Api.pm @@ -97,18 +97,6 @@ sub travel_v1 { return; } - if ( $self->app->mode ne 'development' ) { - $self->render( - json => { - success => \0, - deprecated => \0, - error => -'This feature is incomplete and only available in development mode', - }, - ); - return; - } - my $api_token = $payload->{token} // ''; if ( $api_token !~ qr{ ^ (? \d+ ) - (? .* ) $ }x ) { -- cgit v1.2.3