const { response } = require('octoris')
You must supply both arguments at some point within your handler or the function will throw an error on request
const { response } = require('octoris')
// Since responses are curried we can create a basic status code constant
const toGoogle = response.redirect('https://google.com')
function homeHandler (ctx) {
return toGoogle({ foo: 'bar' })
}
function aboutHandler (ctx) {
return response.redirect('https://facebook.com', { a: 1, b: 2 })
}