Skip to content
Snippets Groups Projects
Commit 434d8b56 authored by Rafael László's avatar Rafael László :speech_balloon:
Browse files

extra stuff for json

parent 29c64855
Branches
No related tags found
No related merge requests found
Pipeline #6650 passed
......@@ -221,6 +221,9 @@ app.config["DEBUG"] = True
@app.route('/', methods=['GET'])
def home():
# Lekérjük az előző oldalról :D Laziness 100
# Ha szeretnének saját json-el visszatérni, akkor készítsetek
# egy Dict objektumot és azzal térjetek vissza. Ezt majd a library
# megfelelő mód küldi le.
r = requests.get('https://hanyadikhetvan.attiss.eu/api')
# Visszatérünk vele
return r.json()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment