Endpoint with Express

node v10.24.1
version: 1.0.0
endpointsharetweet
var express = require("express"); function runkitExpress(anExport) { var mount = express(); var app = express(); // "mount" is our root app, and it mounts "app" at your notebook path // which is available in the RUNKIT_MOUNT_PATH environment variable mount.use(process.env.RUNKIT_MOUNT_PATH || "", app); if (anExport) { anExport.endpoint = mount; } // overwrite .listen since it is not needed app.listen = function(){} // return the express instance for use by the caller return app; } module.exports = runkitExpress
### This is Sample from https://runkit.com/runkit/express-endpoint
Loading…

no comments

    sign in to comment