seamapi / edgespec

☃️ an API framework for everywhere.
MIT License
5 stars 2 forks source link

`ctx` refactor, add typed helpers #87

Closed mxsdev closed 7 months ago

mxsdev commented 7 months ago

Does these things:

middlewares will accept (req, ctx, next) route handlers will accept (req, ctx) req doesn’t change from the existing implementation in edgespec ctx has some helper methods (typed!) like ctx.json() that return an EdgeSpecResponse