mirror of
https://github.com/timmypidashev/web.git
synced 2026-04-14 11:03:50 +00:00
upload test
This commit is contained in:
15
venv/index.py
Normal file
15
venv/index.py
Normal file
@@ -0,0 +1,15 @@
|
||||
from flask import Flask
|
||||
|
||||
|
||||
app = Flask(__name__)
|
||||
|
||||
|
||||
@app.route("/")
|
||||
def home():
|
||||
return "Home Page Route"
|
||||
|
||||
@app.route("/api")
|
||||
def api():
|
||||
with open("data.json", mode="r") as my_file:
|
||||
text = my_file.read()
|
||||
return text
|
||||
Reference in New Issue
Block a user