Skip to content

Commit

Permalink
Small update in functions
Browse files Browse the repository at this point in the history
  • Loading branch information
rambodc committed Mar 16, 2024
1 parent 7a7896a commit bcc0261
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion functions/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const cors = require("cors")({origin: true});
exports.getExample = functions.https.onRequest((request, response) => {
cors(request, response, () => {
if (request.method === 'GET') {
response.send('Hello, this is a GET request!');
response.send('Hello, this is a GET request 2!');
} else {
response.status(405).send('Method Not Allowed');
}
Expand Down

0 comments on commit bcc0261

Please sign in to comment.