Add device token management and server connection detection

This commit is contained in:
Ben Goldsworthy 2020-11-28 19:53:19 +00:00
parent 0d4202562f
commit 9d4c736d95
14 changed files with 4990 additions and 7 deletions

View file

@ -60,6 +60,18 @@ sub auth {
return 0;
}
sub test_connection {
my $c = shift;
return $c->render(
json => {
success => Mojo::JSON->true,
message => 'Database connection successful',
},
status => 200,
);
}
sub post_login {
my $c = shift;