Skip to content

Commit

Permalink
correction of the routes in the frontend
Browse files Browse the repository at this point in the history
  • Loading branch information
ooemperor committed Nov 23, 2023
1 parent 3cf5d81 commit 60f8e62
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions codeGrader/frontend/admin/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ def users():
return UserListHandler(request).get()


@app.route("/addUser", methods=['GET', 'POST'])
@app.route("/user/add", methods=['GET', 'POST'])
@login_required
def addUser():
"""
Expand Down Expand Up @@ -145,7 +145,7 @@ def adminUsers():
return AdminUserListHandler(request).get()


@app.route("/addAdminUser", methods=['GET', 'POST'])
@app.route("/adminUser/add", methods=['GET', 'POST'])
@login_required
def addAdminUser():
"""
Expand Down Expand Up @@ -183,7 +183,7 @@ def profiles():
return ProfileListHandler(request).get()


@app.route("/addProfile", methods=['GET', 'POST'])
@app.route("/profile/add", methods=['GET', 'POST'])
@login_required
def addProfile():
"""
Expand Down Expand Up @@ -221,7 +221,7 @@ def subjects():
return SubjectListHandler(request).get()


@app.route("/addSubject", methods=['GET', 'POST'])
@app.route("/subject/add", methods=['GET', 'POST'])
@login_required
def addSubject():
"""
Expand Down Expand Up @@ -259,7 +259,7 @@ def exercises():
return ExerciseListHandler(request).get()


@app.route("/addExercise", methods=['GET', 'POST'])
@app.route("/exercise/add", methods=['GET', 'POST'])
@login_required
def addExercise():
"""
Expand Down Expand Up @@ -297,7 +297,7 @@ def tasks():
return TaskListHandler(request).get()


@app.route("/addTask", methods=['GET', 'POST'])
@app.route("/task/add", methods=['GET', 'POST'])
@login_required
def addTask():
"""
Expand Down

0 comments on commit 60f8e62

Please sign in to comment.