Open YotamZiv298 opened 1 year ago
Export the status codes from this file: src/server/controllers/taskController.ts
src/server/controllers/taskController.ts
To an enum, like this:
enum
enum HttpStatusCodes { Ok = 200, Created = 201, NotFound = 404, }
You can also do it for the recurring messages like "Task not found" etc...
"Task not found"
Export the status codes from this file:
src/server/controllers/taskController.ts
To an
enum
, like this: