Check Studio health on an explicit API route
studio CI and deployment / verify-and-deploy (push) Successful in 7m56s
studio CI and deployment / verify-and-deploy (push) Successful in 7m56s
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
import type {NextApiRequest,NextApiResponse} from "next";
|
||||
export default function handler(req:NextApiRequest,res:NextApiResponse){res.setHeader("Cache-Control","no-store");if(!["GET","HEAD"].includes(req.method||""))return res.status(405).end();return req.method==="HEAD"?res.status(200).end():res.status(200).json({status:"ok",service:"prompt-studio"});}
|
||||
Reference in New Issue
Block a user