periodicjs
Version:
Periodic is a rapid enterprise application framework for data driven web and mobile applications.
23 lines (21 loc) • 569 B
JavaScript
;
/**
* this function is used to add additional customizations to the express application before the express server starts. The function is bound with the periodic singleton instance
*
* @returns
*/
function customExpressConfiguration() {
return new Promise((resolve, reject) => {
/**
* this.app// is a reference to periodic's express instance
* app.use((req,res,next)=>{
* //custom middleware
* next();
* })
*/
resolve(true);
});
}
module.exports = {
customExpressConfiguration,
};