Guest User

Untitled

a guest
Mar 18th, 2018
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. // omitted init. of functions
  2. import * as express from 'express';
  3.  
  4. const cors = require('cors')({origin: true});
  5. const app = express();
  6. app.use(cors);
  7.  
  8. // The function to test
  9. app.get('helloWorld, (req, res) => {
  10. res.send('hello world');
  11. return 'success';
  12. });
  13.  
  14. exports.app = functions.https.onRequest(app);
Add Comment
Please, Sign In to add comment