MCPcopy Create free account
hub / github.com/parse-community/parse-server / handleParseHealth

Function handleParseHealth

src/middlewares.js:522–532  ·  view source on GitHub ↗
(options)

Source from the content-addressed store, hash-verified

520}
521
522export function handleParseHealth(options) {
523 return (req, res) => {
524 res.status(options.state === 'ok' ? 200 : 503);
525 if (options.state === 'starting') {
526 res.set('Retry-After', 1);
527 }
528 res.json({
529 status: options.state,
530 });
531 };
532}
533
534export function enforceRouteAllowList(req, res, next) {
535 const config = req.config;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…