oh-my-c0de/oh-my-fullstack

View on GitHub
server/handlers/status.js

Summary

Maintainability
A
0 mins
Test Coverage
import { name, description, version } from '../../package.json';

/**
 * Default status handler
 *
 * @param req
 * @param res
 */
export const status = (req, res) => res.json({ name, description, version });

/**
 * Status handlers
 *
 * @typedef {Object} Status
 * @property {function} status
 */
export default {
  status,
};