Skip to content

Commit

Permalink
Merge pull request #14 from Code4GovTech/cors_fix
Browse files Browse the repository at this point in the history
auth added
  • Loading branch information
sasi2312 authored Jun 11, 2024
2 parents 0525af7 + 7ecd8eb commit c6f2da6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ def decorated_function(*args, **kwargs):

@app.route('/get-data', methods=['GET'])
@cross_origin(supports_credentials=True)
@require_secret_key
def get_data():
"""
Fetch data from Supabase.
Expand Down Expand Up @@ -86,6 +87,7 @@ def get_data():


@app.route('/v1/issues', methods=['GET'])
@require_secret_key
def v1get_issues():
try:
response = SupabaseInterface().get_instance().client.table('dmp_issue_updates').select('*').execute()
Expand Down

0 comments on commit c6f2da6

Please sign in to comment.