Release Travel API

This commit is contained in:
Daniel Friesel 2019-12-31 13:27:14 +01:00
parent 86a991c28c
commit a9a7fa4492
4 changed files with 16 additions and 15 deletions

View file

@ -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 ) {

View file

@ -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>

View file

@ -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">

View file

@ -1,5 +1,18 @@
<h1>Changelog</h1>
<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