Skip to content

Update GET: /api/events to return course events #593

@hobindar

Description

@hobindar

At the moment, GET: /api/events will not return course events. This needs to be changed. Assuming front end keeps the section arrays updated as well as selected section value (which they should), we can just toss in section_array[selected_section] as an extra event. The object may need to be modified slightly to be consistent with other events. This modification should happen on the fly.

The course controller also contains a strange typo. On add course, we store lecArray in the database. However, this field is never defined anywhere. Given how small this issue is, let's fix it here at the same time.

Let's also remove the hash and user database entries with this issue. Both are not used anywhere.

CC: @pranR

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions