Fastro Middlewares
Welcome to the Fastro middleware collection! This page lists all available middlewares created by the community.
Want to add your middleware? Please follow the instructions in the Contributing Guide and add your middleware to this list via a Pull Request.
Official Middlewares
These middlewares are maintained by the Fastro core team.
| Name | Description | Source |
|---|---|---|
| Logger | Standard request/response logging. | Source |
| CORS | Handle Cross-Origin Resource Sharing. | Source |
| Static | Serve static files and SPA support. | Source |
| BodyParser | Parse request body (JSON, Form, etc.) | Source |
Modules as Middleware
In Fastro, every module is a middleware. This allows for powerful patterns where you can group routes and logic into directories and load them dynamically.
- Learn more about Creating Modules.
- See the Module Loader source code.
Community Middlewares
Add your awesome middlewares here!
| Name | Description | Author | Link |
|---|---|---|---|
| Example Middleware | A starter template for your own logic. | @fastrodev | View Source |
How to add your middleware here:
- Create your middleware logic.
- Submit a PR adding your middleware to the
middlewares/directory. - Add a new row to the table above with your details.