Tasks
GET api/tasks
This route retrieves tasks assigned to the user to populate onto their profile.
Expected Headers:
"Authorization": "Bearer <token>"
Expected Response:
[
{
"_id": "58f5a7cdc0fc830554454e9d",
"googleID": "7b8df6e1-9ecf-4096-9e35-e35133e23c74",
"author": "system",
"category": {
"_id": "58f5a7cdc0fc830554454e9c",
"name": "uncategorized",
"user": "58f5a7cdc0fc830554454e9b",
"__v": 0
},
"userID": "58f5a7cdc0fc830554454e9b",
"comment": "placeholder",
"__v": 0,
"replies": []
},
{
"_id": "58f5a99abf992807e74929c3",
"googleID": "75afd317-f13a-43aa-84b7-62dea1e0550a",
"author": "system",
"category": {
"_id": "58f5a99abf992807e74929c2",
"name": "Friday",
"user": "58f57a0774628d03a8def07c",
"__v": 0
},
"userID": "58f5a7cdc0fc830554454e9b",
"comment": "placeholder",
"__v": 0,
"replies": []
}
]