how can i create a nodejs rest api using firebase cloud functions without express?

The documentation shows how to create an endpoint without the help of an Express app, router, or middleware:

exports.date = functions.https.onRequest((req, res) => {
  // ...
});

All you have to do is arrange to send a response with res.send(...) or similar.

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top