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 logRoutes 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/log/:id" endpoint.
[x] When a request is received, a sequelize update method is run on LOG model.
[x] The first argument passes along the data from the request body { id - log number, log_text, is_hidden }
[x] The second argument indicates "where" the change should be made according to the req.params.id value.
[x] When the awaited updated value resolves, the response should send the newly modified message object as JSON to front
[x] If an error occurs, the client should be informed.
The developer will need to modify the apiRoutes folder logRoutes 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: