primatejs / primate

Web framework focused on flexibility and developer freedom
https://primatejs.com
MIT License
200 stars 9 forks source link

turn off body parsing per route #101

Closed terrablue closed 6 months ago

terrablue commented 6 months ago

Routes should be able to do export const body = false individually.

That means parsing the body only after handle hook is executed and after a route is a matched, but before its hooks and the route itself are executed.

As such the parsed request.body wouldn't be available in the handle hook -> check if any modules currently rely on that.

terrablue commented 6 months ago

7ab9f2d