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 POST route which will receive the client request and add to the server with the req.body data.
Acceptance criteria:
[x] A POST route listens for client requests at the "/api/log/:id" endpoint.
[x] When a request is received, a sequelize create method is run.
[x] You will need to add the ticket_id value to the request object - it can be accessed as req.params.id
[x] You will need to add the user_id value to the request object - it is the currently authenticated user as req.session.user_id
[x] On successful creation, the server should return the newly created object to the client with res.json
[x] On failure, the client should be informed of the issue.
The developer will need to modify the apiRoutes folder logRoutes file. They will add a POST route which will receive the client request and add to the server with the req.body data.
Acceptance criteria: