lukeautry / tsoa

Build OpenAPI-compliant REST APIs using TypeScript and Node
MIT License
3.42k stars 489 forks source link

Is it possible to split routers with tsoa for lambdas? #1514

Closed Anasshahidd21 closed 7 months ago

Anasshahidd21 commented 9 months ago

Sorting

When creating an express server, I create multiple routers and each router is exported as a lambda function to AWS. I want to do the same while using tsoa but I know that tsoa has more of a monolithic architecture, is there a way to get to it? right now when I do the exports it is exporting all of the server as one lambda function

github-actions[bot] commented 9 months ago

Hello there Anasshahidd21 👋

Thank you for opening your very first issue in this project.

We will try to get back to you as soon as we can.👀

WoH commented 9 months ago

Yes, via a custom route generator. There's one for AWS Lambda sketched out in the tests.

https://github.com/lukeautry/tsoa/tree/master/tests/fixtures/custom

github-actions[bot] commented 8 months ago

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days