Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 31 additions & 4 deletions app.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,33 @@
from flask import Flask
from flask import Flask, jsonify

app = Flask(__name__)

@app.route('/')
def hello_world():
return 'Hello, World!'
@app.route("/api/berlin-data")
def berlin_data():
data = [
{
"category": "Fußballverein",
"name": "FC Viktoria 1889 Berlin",
"email": "[email protected]",
"district": "Tempelhof-Schöneberg",
"source": "https://viktoria.berlin"
},
{
"category": "Kita",
"name": "INA.KINDER.GARTEN Prenzlauer Berg",
"email": "[email protected]",
"district": "Pankow",
"source": "https://inakindergarten.de"
},
{
"category": "Private Schule",
"name": "Berlin Metropolitan School",
"email": "[email protected]",
"district": "Mitte",
"source": "https://metropolitanschool.com"
}
]
return jsonify(data)

if __name__ == "__main__":
app.run(host="0.0.0.0", port=8080)