Fix Hurst fetch URL to use full API_BASE_URL and ensure endpoint returns JSON for all query params

This commit is contained in:
DiTus
2026-03-18 22:37:42 +01:00
parent 8bb61e014d
commit 79802aa173
1147 changed files with 141293 additions and 14 deletions

30
node_modules/union/examples/simple/spdy.js generated vendored Normal file
View File

@ -0,0 +1,30 @@
// In order to run this example you need to
// generate local ssl certificate
var union = require('../../lib'),
director = require('director');
var router = new director.http.Router();
var server = union.createServer({
before: [
function (req, res) {
var found = router.dispatch(req, res);
if (!found) {
res.emit('next');
}
}
],
spdy :{
key: './certs/privatekey.pem',
cert: './certs/certificate.pem'
}
});
router.get(/foo/, function () {
this.res.writeHead(200, { 'Content-Type': 'text/plain' })
this.res.end('hello world\n');
});
server.listen(9090, function () {
console.log('union with director running on 9090 with SPDY');
});