App.get ('/ data/subjects', (req, res) = > {} express how to match the path

app.get("/data/subjects", (req, res) => {}express
Jan.08,2022

app.get( ['/r1' , '/r2'] , function (req, res, next) {
  res.send('all');
});

this matches two routes

Menu