Hack-Maze / backend

0 stars 1 forks source link

add `completedPages` in get maze response #13

Open juba0x00 opened 2 weeks ago

juba0x00 commented 2 weeks ago

in /page/maze/{mazeId} endpoint for EXAMPLE the current response

[
  {
    "id": 9,
    "title": "a",
    "description": "description",
    "content": "<p>a</p>",
    "questions": []
  },
  {
    "id": 10,
    "title": "s",
    "description": "description",
    "content": "<p>s</p>",
    "questions": []
  }
] 

the wanted response

[
  {
    "id": 9,
    "title": "a",
    "description": "description",
    "content": "<p>a</p>",
    "questions": []
    "isCompleted": true
  },
  {
    "id": 10,
    "title": "s",
    "description": "description",
    "content": "<p>s</p>",
    "questions": []
    "isCompleted": false
  }
]

@marymfouda

marymfouda commented 1 week ago

image