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; 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} // ''; my $api_token = $payload->{token} // '';
if ( $api_token !~ qr{ ^ (?<id> \d+ ) - (?<token> .* ) $ }x ) { if ( $api_token !~ qr{ ^ (?<id> \d+ ) - (?<token> .* ) $ }x ) {

View file

@ -170,7 +170,6 @@
%= end %= end
</td> </td>
</tr>--> </tr>-->
% if (app->mode eq 'development') {
<tr> <tr>
<th scope="row">Travel</th> <th scope="row">Travel</th>
<td> <td>
@ -194,6 +193,7 @@
%= end %= end
</td> </td>
</tr> </tr>
% if (app->mode eq 'development') {
<tr> <tr>
<th scope="row">Import</th> <th scope="row">Import</th>
<td> <td>

View file

@ -65,8 +65,6 @@
</div> </div>
</div> </div>
% if (app->mode eq 'development') {
<h2>Travel</h2> <h2>Travel</h2>
<div class="row"> <div class="row">
<div class="col s12"> <div class="col s12">
@ -148,6 +146,8 @@
</div> </div>
</div> </div>
% if (app->mode eq 'development') {
<h2>Import</h2> <h2>Import</h2>
<div class="row"> <div class="row">
<div class="col s12"> <div class="col s12">

View file

@ -1,5 +1,18 @@
<h1>Changelog</h1> <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="row">
<div class="col s12 m1 l1"> <div class="col s12 m1 l1">
1.12 1.12