chingu-voyages / v30-geckos-team-08

Add-project-description-here | Voyage-99 | https://chingu.io/ | Twitter: https://twitter.com/ChinguCollabs
0 stars 1 forks source link

Added ejs pages (about, poll & results) and wrote their basic route d… #46

Closed shepherdlewis000 closed 3 years ago

shepherdlewis000 commented 3 years ago

…efinitions and some database retrieval functionality.

Added routes for poll/:id and results/:id and added the database poll lookup code in each. Refactored poll creation to remove unused properties, use Nanoid for pollID creation. Added 3 ejs files: about.ejs, poll.ejs and results.ejs and tested with each of their routes