UNPKG

apeman-app-json

Version:
24 lines (22 loc) 573 B
/** This example Apemanfile to use apeman-app-json */ "use strict"; module.exports = { $pkg: {/*...*/}, $apps: { // Define your own app. 'my-app-01': { // Map url and handlers. '/': [ require('apeman-app-json')({ //Options }), function(req, res, next){ // `res.json()` method is available now. res.json({ success:true }) } ] } } };