Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

162
Views
Javascript: GET not supported for method Error

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?

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!