Closed ItzNotABug closed 5 months ago
I think we should keep the AppExpressResponse
in the middleware handler.
This will be helpful for supporting external middlewares.
Tests run fine -
LGTM, can be merged. Live Action @ https://appexpressdev.appwrite.global.
This PR adds the ability to use a
Router
, something like -Additional changes include perf. side improvements by replacing
Array
implementations withMap
for fast access.Implement
tests
, add a GitHub Workflow for PRs for the sameMiddleware registry is now via
appExpress.middleware(...)
and notappExpress.use(...)
Middlewares now run before finding any routes and can also return responses now