J.P. Poveda
J.P. Poveda
Generically (i.e., raw express), it might be done something like this: ``` const express = require('express'); const app = express(); app.all('*', (req, res, next) => { var json = res.json;...
Note to self - the `*` interceptor pattern used above might be a way to refactor how `resLocals` works so that the route handlers don't have to call `next` unless...
See ["How do I handle 404 responses?"](https://expressjs.com/en/starter/faq.html) at the expressjs.com FAQ. They state that 404 simply indicates an absence of additional work to do (i.e., none of the middleware functions...
A note of caution: It may not be as simple as adding a handler to the end of the stack. If handlers are passing off to the `next` handler, they...
**Re: A problem with proposal 2 & questioning if we really want to implement this ticket:** Proposal 2 doesn't actually add the value that it seems to since the interceptor...
For the moment this can be handled using `formatFromJson`
ACL functionality is probably something too custom to a particular project to offer as a generalized built in solution to SakuraApi...
I'm developing doubts that this should be a core implementation... If someone really wants Zonejs they could inject it in their own middleware early on, so it may not make...
After thinking about this for a bit, it seems like the need is limited to https://github.com/sakuraapi/api/blob/develop/src/handlers/basic-handlers.ts. Other parts of the application will throw or reject and the error bubbles up...