Add docker healthcheck route
This commit is contained in:
parent
68b82bffc4
commit
9a11e746e7
30
pages/api/healthcheck.ts
Normal file
30
pages/api/healthcheck.ts
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
import { NextApiRequest, NextApiResponse } from "next";
|
||||||
|
|
||||||
|
/**
|
||||||
|
* ==============================================================================
|
||||||
|
* Imports
|
||||||
|
* ==============================================================================
|
||||||
|
*/
|
||||||
|
|
||||||
|
/** ****************************************************************************** */
|
||||||
|
/** ****************************************************************************** */
|
||||||
|
/** ****************************************************************************** */
|
||||||
|
/** ****************************************************************************** */
|
||||||
|
/** ****************************************************************************** */
|
||||||
|
/** ****************************************************************************** */
|
||||||
|
|
||||||
|
/**
|
||||||
|
* API handler
|
||||||
|
* ==============================================================================
|
||||||
|
* @type {import("next").NextApiHandler}
|
||||||
|
*/
|
||||||
|
export default async function handler(
|
||||||
|
req: NextApiRequest,
|
||||||
|
res: NextApiResponse
|
||||||
|
) {
|
||||||
|
if (req.method !== "GET") return res.json({ msg: "Failed!" });
|
||||||
|
|
||||||
|
res.json({
|
||||||
|
success: true,
|
||||||
|
});
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user