Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // omitted init. of functions
- import * as express from 'express';
- const cors = require('cors')({origin: true});
- const app = express();
- app.use(cors);
- // The function to test
- app.get('helloWorld, (req, res) => {
- res.send('hello world');
- return 'success';
- });
- exports.app = functions.https.onRequest(app);
Add Comment
Please, Sign In to add comment