I have app.get( `${base}/:id/statements/fromDate/toDate`, doGetStatement( app )) ; inside my routes method, and from 'https://localhost:2345/accounts/365_66/statements/2021-02-01/2021-02-28', I'd like to extract the fromDate and toDate fields. With this code inside my doGetStatement method:
const id = req.params.id ;
const from = req.body.fromDate ;
const to = req.body.toDate ;
I'm receiving the error "GET not supported for /accounts/1_99/statements/2021-02-01/2021-02-28". How can I properly get the fields fromDate and toDate?