feat: add a dummy / route while frontend is in progress

This commit is contained in:
2025-12-26 08:26:30 +01:00
parent a1ae380ffa
commit 0c75d2b5b5

View File

@@ -45,13 +45,24 @@ sub startup {
my $err = shift;
$c->app->log->error("Health check DB error: $err");
$c->render(
json => { status => 'error', error => 'Database connection failed' },
json => {
status => 'error',
error => 'Database connection failed'
},
status => 503
);
}
);
}
);
$r->get('/')->to(
cb => sub {
my $c = shift;
$c->render(
json => { status => 'hello from urupam', service => 'urupam' }
);
}
);
my $api_v1 = $r->under('/api/v1');
$api_v1->post('/urls')->to(