-
Notifications
You must be signed in to change notification settings - Fork 27
Closed
Labels
Description
We need to create an endpoint where user can poll for the submissions that were made using polling mode. All the jobs are stored in the src/models/Submission
model which has a result key. While polling the user will give us the submission id and we'll return the submission object
- create a new folder
src/routes/api/submissions
- create an
index.ts
file which'll act as the url map - create an
controller.ts
file which'll export an object containing the handler - mount
/api/submissions/:id
endpoint to the polling controller
- create an
- write test for the api