Tweet-311-Denver / tweet_311_denver_service

Backend for Tweet311Denver Turing Project
MIT License
1 stars 0 forks source link

Add test endpoint for FE to use #38

Closed Dustin-Mikusko closed 4 years ago

Dustin-Mikusko commented 4 years ago

What does this PR do?

This PR creates a testing endpoint for the Front End to use without creating so many reports for Denver.

Where should the reviewer start?

In lib/routes.js, theres a new endpoint /api/v1/test/reports which simulates the actual reports endpoint.

Background Info

I used Puppeteer to try to simulate the process as much as possible. I add a 10 second setTimeout to make it stall to help the front end with timing

Issues

Closes #37