Because I touched the Cloud Function of Google, it is the note.
This is the output and get in HelloWorld and Json.
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
const functions = require('firebase-functions'); | |
exports.helloWorld = functions.https.onRequest((request, response) => { | |
response.send("Hello from Firebase!"); | |
}); | |
exports.json = functions.https.onRequest((request, response) => { | |
const json = { | |
id: "Hello", | |
contributions: "contributions", | |
}; | |
response.send(JSON.stringify(json)); | |
}); | |
exports.goodEvening = functions.https.onRequest((request, response) => { | |
var str_out = "" | |
const user = request.query.user | |
str_out += "user = " + user | |
response.send(str_out) | |
}); |