| 1 | # | ||
| 2 | # (c) Jan Gehring <jan.gehring@gmail.com> | ||
| 3 | # | ||
| 4 | # vim: set ts=2 sw=2 tw=0: | ||
| 5 | # vim: set expandtab: | ||
| 6 | |||
| 7 | package Rex::Repositorio::Server::Docker::Index; | ||
| 8 | |||
| 9 | use Mojo::Base 'Mojolicious::Controller'; | ||
| 10 | |||
| 11 | our $VERSION = '1.2.1'; # VERSION | ||
| 12 | |||
| 13 | sub index { | ||
| 14 | my ($self) = @_; | ||
| 15 | $self->render( json => { ok => 1 } ); | ||
| 16 | } | ||
| 17 | |||
| 18 | sub ping { | ||
| 19 | my ($self) = @_; | ||
| 20 | $self->render( text => 'true' ); | ||
| 21 | } | ||
| 22 | |||
| 23 | 1; |