Feature/api paramyxrx #25
1 changed files with 1 additions and 1 deletions
|
|
@ -30,7 +30,7 @@ app.get("/api", (req, res) => {
|
||||||
|
|
||||||
app.use('/api', apiRouter);
|
app.use('/api', apiRouter);
|
||||||
|
|
||||||
app.get('/db-health', async (req, res) => {
|
app.get('/api/db-health', async (req, res) => {
|
||||||
try {
|
try {
|
||||||
const result = await shiftRunQuery('SELECT NOW()');
|
const result = await shiftRunQuery('SELECT NOW()');
|
||||||
res.json({ connected: true, time: result.rows[0].now });
|
res.json({ connected: true, time: result.rows[0].now });
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue