Skip to content

Commit c6f2da6

Browse files
authored
Merge pull request #14 from Code4GovTech/cors_fix
auth added
2 parents 0525af7 + 7ecd8eb commit c6f2da6

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

app.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ def decorated_function(*args, **kwargs):
5757

5858
@app.route('/get-data', methods=['GET'])
5959
@cross_origin(supports_credentials=True)
60+
@require_secret_key
6061
def get_data():
6162
"""
6263
Fetch data from Supabase.
@@ -86,6 +87,7 @@ def get_data():
8687

8788

8889
@app.route('/v1/issues', methods=['GET'])
90+
@require_secret_key
8991
def v1get_issues():
9092
try:
9193
response = SupabaseInterface().get_instance().client.table('dmp_issue_updates').select('*').execute()

0 commit comments

Comments
 (0)