modofunjs / modofun

A fast function router for serverless Node.js applications
https://modofun.js.org
MIT License
95 stars 4 forks source link

Support for more than one functionality #4

Open rasekar2000 opened 5 years ago

rasekar2000 commented 5 years ago

Hello Team, https://github.com/modofunjs/modofun/blob/master/examples/todo-aws-lambda/index.js

Can I have more than one module const myModule = require('./myModule');

and export them together to be registered in the serverless framework.

for e.g

const myModule = require('./myModule'); const yourModule = require('./yourModule');

exports.handler = modofun(myModule, yourModule, [ morgan('tiny') ])

If such feature is not available now, is this requirement can be considered for future enhancement.

Thanks and Regards, Raj

rasekar2000 commented 5 years ago

Will have to check this SOF Linkexport concept with Google Cloud Function. Seems Firebase Function will work. https://stackoverflow.com/a/46572787/4987993