🎨 🧹

This commit is contained in:
Timur Ercan
2023-03-02 18:42:38 +01:00
parent 07dca8a2db
commit b178a4ed58
4 changed files with 10 additions and 25 deletions

View File

@ -3,15 +3,12 @@ import type { NextApiRequest, NextApiResponse } from "next";
import { defaultHandler, defaultResponder } from "@documenso/lib/server";
import prisma from "@documenso/prisma";
type responseData = {
status: string;
};
// Return a healthy 200 status code for uptime monitoring and render.com zero-downtime-deploy
async function getHandler(req: NextApiRequest, res: NextApiResponse) {
// A generic database access to make sure the service is healthy.
// Some generic database access to make sure the service is healthy.
const users = await prisma.user.findFirst();
res.status(200).json({ message: "Api up and running :)" });
return res.status(200).json({ message: "Api up and running :)" });
}
export default defaultHandler({