bcgov/citz-imb-staff-purchasing-reimbursement

View on GitHub
api/controllers/health-api-controller.ts

Summary

Maintainability
A
0 mins
Test Coverage
import { Request, Response } from 'express';

/**
 * @description Used to check if API is running.
 * @param {Request}     req Incoming request
 * @param {Response}    res Outgoing response
 * @returns {Response}      A 200 status indicating API is healthy and running
 */
export const healthCheck = async (req: Request, res: Response) =>
  res.status(200).send('/health endpoint reached. API running.');