On project creation, assign the creator of the project as the project manager by adding a row to the enrollments table with the necessary information (project id, user id, 4 credits, semester_id).
This will need to be revised to support a stricter authentication scheme. In addition to this, we will need to revisit the Hasura call to modify the row if it already exists.
I also fixed the project/ route being broken; the /projects/<sem> route has been commented out in favor of the /projects/<project id> route. The commented route will be replaced with a querystring.
On project creation, assign the creator of the project as the project manager by adding a row to the enrollments table with the necessary information (project id, user id, 4 credits, semester_id).
This will need to be revised to support a stricter authentication scheme. In addition to this, we will need to revisit the Hasura call to modify the row if it already exists.
I also fixed the
project/
route being broken; the/projects/<sem>
route has been commented out in favor of the/projects/<project id>
route. The commented route will be replaced with a querystring.