summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2019-12-31 13:27:14 +0100
committerDaniel Friesel <derf@finalrewind.org>2019-12-31 13:27:14 +0100
commita9a7fa4492fecae9b03cc79d960a72d3bfbd3fdc (patch)
tree6e5060d778b5cc9ba0ed9da0889f263a43891cda
parent86a991c28ca06040c111b33cc36a0dd53bb29952 (diff)
Release Travel API1.13.0
-rwxr-xr-xlib/Travelynx/Controller/Api.pm12
-rw-r--r--templates/account.html.ep2
-rw-r--r--templates/api_documentation.html.ep4
-rw-r--r--templates/changelog.html.ep13
4 files changed, 16 insertions, 15 deletions
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{ ^ (?<id> \d+ ) - (?<token> .* ) $ }x ) {
diff --git a/templates/account.html.ep b/templates/account.html.ep
index e6a4576..8b14bd0 100644
--- a/templates/account.html.ep
+++ b/templates/account.html.ep
@@ -170,7 +170,6 @@
%= end
</td>
</tr>-->
- % if (app->mode eq 'development') {
<tr>
<th scope="row">Travel</th>
<td>
@@ -194,6 +193,7 @@
%= end
</td>
</tr>
+ % if (app->mode eq 'development') {
<tr>
<th scope="row">Import</th>
<td>
diff --git a/templates/api_documentation.html.ep b/templates/api_documentation.html.ep
index e5d026f..73f02cb 100644
--- a/templates/api_documentation.html.ep
+++ b/templates/api_documentation.html.ep
@@ -65,8 +65,6 @@
</div>
</div>
-% if (app->mode eq 'development') {
-
<h2>Travel</h2>
<div class="row">
<div class="col s12">
@@ -148,6 +146,8 @@
</div>
</div>
+% if (app->mode eq 'development') {
+
<h2>Import</h2>
<div class="row">
<div class="col s12">
diff --git a/templates/changelog.html.ep b/templates/changelog.html.ep
index 7c5f3b8..8492a06 100644
--- a/templates/changelog.html.ep
+++ b/templates/changelog.html.ep
@@ -2,6 +2,19 @@
<div class="row">
<div class="col s12 m1 l1">
+ 1.13
+ </div>
+ <div class="col s12 m11 l11">
+ <p>
+ <i class="material-icons left">add</i> API-Endpunkt zum Einchecken in
+ Züge, aktualisieren der Zielwahl und Zurücknehmen des letzten
+ Checkins.
+ </p>
+ </div>
+</div>
+
+<div class="row">
+ <div class="col s12 m1 l1">
1.12
</div>
<div class="col s12 m11 l11">