Skip to content

Commit

Permalink
changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerwoud committed Mar 31, 2024
1 parent 06ec06f commit 9c907d6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions backend/project/__main__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
"""Main entry point for the application."""

from os import getenv
from dotenv import load_dotenv
from flask_cors import CORS
from project import create_app_with_db
Expand Down
2 changes: 1 addition & 1 deletion backend/project/endpoints/courses/courses.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
class CourseForUser(Resource):
"""Api endpoint for the /courses link"""

# @login_required
@login_required
def get(self):
""" "
Get function for /courses this will be the main endpoint
Expand Down
1 change: 1 addition & 0 deletions backend/project/utils/authentication.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ def return_authenticated_user_id():
"""This function will authenticate the request and check whether the authenticated user
is already in the database, if not, they will be added
"""
print("wadaheeel")
authentication = request.headers.get("Authorization")
if not authentication:
abort(
Expand Down

0 comments on commit 9c907d6

Please sign in to comment.