ministerchief commited on
Commit
1dfc78d
·
verified ·
1 Parent(s): c71cc99

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -0
app.py CHANGED
@@ -10,6 +10,15 @@ app = Flask(
10
  static_folder=os.path.join(base_dir, 'static')
11
  )
12
 
 
 
 
 
 
 
 
 
 
13
  @app.route('/')
14
  def home():
15
  return render_template('index.html')
 
10
  static_folder=os.path.join(base_dir, 'static')
11
  )
12
 
13
+ from fastapi import FastAPI
14
+
15
+ app = FastAPI()
16
+
17
+ @app.get("/")
18
+ def greet_json():
19
+ return {"Hello": "World!"}
20
+
21
+
22
  @app.route('/')
23
  def home():
24
  return render_template('index.html')