ExpressJS Step 8

file_type_typescript http.ts
// Multi Route ExpressJS HTTP Function
const app = express();

app.get('/cat', (request, response) => {
  response.send('CAT');
});

app.get('/dog', (request, response) => {
  response.send('DOG');
});

export const api = functions.https.onRequest(app);

Q&A Chat