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 developer will need to modify the apiRoutes folder ticketRoutes file. They will add a put route which will receive the client request and update the server with the req.body data where the req.params.id matches.
Acceptance criteria:
[x] A put route listens for client requests at the "/api/ticket/:id" endpoint.
[ ] When a request is received, a sequelize update method is run.
The first argument passes along the data from the request body
The second argument indicates "where" the change should be made according to the req.params.id value.
[ ] When the awaited updated value resolves, the response should redirect the client to the same origin address.
[ ] If an error occurs, the client should be informed.
The developer will need to modify the apiRoutes folder ticketRoutes file. They will add a put route which will receive the client request and update the server with the req.body data where the req.params.id matches.
Acceptance criteria: