UNPKG

esrol

Version:

A wrapper of all Esrol server components for creating performance efficient, well structured (by following 'convention over configuration' approach), but also configurable, server-side applications.

18 lines (12 loc) 242 B
'use strict'; module.exports = class Ping { static get url() { return '/ping'; } static getMultipleRecords(req, res) { return res.end('pong'); } static getSingleRecord(req, res) { return res.end(req.record); } };