we load the url /_book, works... then refresh the page and it doesnt load the css. It loads the html though.
hi everybody! somebody is using that?
is it right? how can I resolve it?
I started using restify last night to flesh out a replacement for something I've been doing, within minutes I was really pleased with the results. Feels like this will make my life a tad easier, so thanks very much!
@barisbalic what were you using before?
@nelsonic you're everywhere!
Was tempted to throw express at the problem, but was expecting some impedance when it came to auth, access control, rate limiting, etc. But handlers and the call chaining will make it all trivial
Quick question: is it possible create a separate route object and then add it to a server object via use(), similar to Express? It would be nice to group routes and define middleware for that group in an isolated manner.
@mcavage I am using restify for a couple of APIs, each of which will expose an endpoint then pipe the request through a series of middlewares, some decorate the request for later stages in the pipeline, others decorate the response. I'm not particularly happy about the way I'm arbitrarily adding to the response, but I can't think of a better way to do this. I am also using the on('after') callback to actually return the response, because I always have the ready-built response by the end of the pipeline.