Skip to content
This repository has been archived by the owner on Dec 7, 2023. It is now read-only.

Commit

Permalink
fix cors
Browse files Browse the repository at this point in the history
  • Loading branch information
fox918 committed Oct 28, 2023
1 parent c18c309 commit a4e8c68
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion backend/app.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
#!/bin/python3
from flask import Flask, jsonify
from coop_locations import getCoopLocations
from flask_cors import CORS

app = Flask(__name__)

CORS(app)

@app.route('/locations')

def locations():
coopData = getCoopLocations("Basel", 10)
return jsonify(coopData)
1 change: 1 addition & 0 deletions backend/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
Flask
flask-cors
openrouteservice
jsonify
requests
Expand Down

0 comments on commit a4e8c68

Please sign in to comment.