This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Don't forget to npm install hoxy | |
var hoxy = require('hoxy'); | |
var proxy = new hoxy.Proxy().listen(8080); | |
proxy.intercept({ | |
phase: 'request', | |
}, function(req, resp) { | |
console.log('\n\n=============================================='); | |
console.log('Request: ' + req.fullUrl()); | |
Object.keys(req.headers).forEach(function(header) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"query": { | |
"bool": { | |
"must": [ | |
{ | |
"query_string": { | |
"query": "couchbaseDocument.doc.type:keyword_slice" | |
} | |
}, | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var grunt = require('grunt'); | |
var controllers = []; | |
grunt.file.expand({ cwd: '' }, 'app/controllers/**/*.js').forEach(function(filename) { | |
// The routes in this file | |
var controller = require(process.cwd() + '/' + filename); | |
controller.filename = filename; | |
controller.priority = controller.priority || 1; | |
controllers.push(controller) |
OlderNewer