stage 1
This commit is contained in:
@@ -8,6 +8,11 @@ const router = Router();
|
||||
router.get(
|
||||
'/',
|
||||
asyncHandler(async (_req, res) => {
|
||||
/*
|
||||
* The health endpoint checks the database on purpose instead of only proving
|
||||
* that Express can answer HTTP. In this project, the server is not useful if
|
||||
* MariaDB is unavailable, so health must include that dependency.
|
||||
*/
|
||||
await query('SELECT 1 AS ok');
|
||||
|
||||
res.json({
|
||||
|
||||
Reference in New Issue
Block a user