Skip to content

Instantly share code, notes, and snippets.

Last active Aug 8, 2017
What would you like to do?
Post: Take control of your backend (II)
const Client = require('node - rest - client').Client
const client = new Client()
exports.fetch = functions.https.onRequest((req, res) => {
client.get(BACKEND_URL, function (data, response) {
() // TODO Clean up
return res.status(200)
.type('application / json')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment