I have a standard REST API using Express, exposed via a Firebase Cloud Function.
const api = express() api.get('/test', (req, res) => res.status(403).json({ "REASON": "UNAUTHORIZED" })) exports.api = functions.https.onRequest(api) Remote
When I deploy it and send GET https://<remote>/api/test via Postman I get 403 { "REASON": "UNAUTHORIZED" } as expected.
Local
When I run firebase emulators:start --only functions to serve these functions locally and test them, I do see functions: HTTP trigger initialized at http://localhost:5001/.../api in my terminal, but when I send GET http://localhost:5001/.../api/test via Postman I get 200 Not Found.
Am I missing something?