UNPKG

express-octopus

Version:

Simple framework for Express Auto-Routing in a structured and scalable way.

40 lines (33 loc) 1.05 kB
// Dependencies const Path = require('path'); // Chech for updates require('./lib/CheckForUpdates').CheckForUpdates(); // Export functionality module.exports = { Setup: require('./lib/ExpressOctopusCore'), OctopusEndPoint: require('./lib/OctopusEndPoint'), DefaultConfiguration: { Production: { path: Path.join(process.cwd(), '/', 'endpoints'), developer: false, printMessages: false, cache: { enabled: true, path: Path.join(process.cwd(), '/cache/'), expiration: 30 }, _default_: 'production' }, Development: { path: Path.join(process.cwd(), '/', 'endpoints'), developer: true, printMessages: true, cache: { enabled: true, path: Path.join(process.cwd(), '/cache/'), expiration: 30 }, _default_: 'development' } } };