diff options
Diffstat (limited to 'lib')
-rwxr-xr-x | lib/Travelynx.pm | 1 | ||||
-rwxr-xr-x | lib/Travelynx/Controller/Api.pm | 6 |
2 files changed, 7 insertions, 0 deletions
diff --git a/lib/Travelynx.pm b/lib/Travelynx.pm index 8e10896..0ded6bb 100755 --- a/lib/Travelynx.pm +++ b/lib/Travelynx.pm @@ -1719,6 +1719,7 @@ sub startup { $r->get('/')->to('traveling#homepage'); $r->get('/about')->to('static#about'); + $r->get('/api')->to('api#documentation'); $r->get('/impressum')->to('static#imprint'); $r->get('/imprint')->to('static#imprint'); $r->get('/api/v0/:user_action/:token')->to('api#get_v0'); diff --git a/lib/Travelynx/Controller/Api.pm b/lib/Travelynx/Controller/Api.pm index a0b8e07..889a0e3 100755 --- a/lib/Travelynx/Controller/Api.pm +++ b/lib/Travelynx/Controller/Api.pm @@ -8,6 +8,12 @@ sub make_token { return create_uuid_as_string(UUID_V4); } +sub documentation { + my ($self) = @_; + + $self->render('api_documentation'); +} + sub get_v0 { my ($self) = @_; |