In this application, users will be able to submit tickets (requests for help) with their coding work, technical questions, etc. Tickets will be created to be addressed by technicians. This application models the AskBCS and JIRA ticket systems.
The homeRoutes.js file will be modified so that the "/ticket/:id" route serves up the proper view with seeded data.
Acceptance criteria:
[x] It is done when the homeRoutes.js file has a router.get("/ticket/:id") listener.
[x] It is done when, before rendering the ticket.handlebars view, the route handler function queries to the Ticket model using sequelize "findByPk" method.
[x] It is done when the primary key, passed as a parameter to the request is used as the argument in this sequelize function.
[x] It is done when, once the awaited data has been retrieved, the data is then serialized.
[x] It is done when the serialized data is given as a portion of the context object to the view.
[x] It is done when the context object inlcudes this Ticket data, the Logged in data from req.session, and the Title for the page.
The homeRoutes.js file will be modified so that the "/ticket/:id" route serves up the proper view with seeded data.
Acceptance criteria: