Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
jblaak
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
3 ms
·
1.
▲
by
jblaak
10y ago
Sure! Here is a gist: https://gist.github.com/JBlaak/8d9fdebb2a28a0b9026a71bced7cc... Every request will have the `accept` and `X-Requested-With` headers and prefixed with some route prefix using the request and the ba
2.
▲
by
jblaak
10y ago
For single requests this would, indeed, be the best solution. However, when exposing an interface to multiple endpoints, requiring the same base url, pre/post-processing of requests this helped me quite a bit.
3.
▲
Show HN: Simplifying http requests using ES decorators
(github.com)
2 points
by
jblaak
10y ago
|
4 comments