📡 ExpressJS

Complex Routing with ExpressJS

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);

Questions? Let's chat

Open Discord