Riza Masykur
commited on
Commit
·
f2c7219
1
Parent(s):
396667a
ok
Browse files
app.py
CHANGED
@@ -1,5 +1,4 @@
|
|
1 |
-
|
2 |
-
|
3 |
from fastapi import FastAPI
|
4 |
|
5 |
app = FastAPI()
|
@@ -7,3 +6,9 @@ app = FastAPI()
|
|
7 |
@app.get("/")
|
8 |
def greet_json():
|
9 |
return {"Hello": "World!"}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import os
|
|
|
2 |
from fastapi import FastAPI
|
3 |
|
4 |
app = FastAPI()
|
|
|
6 |
@app.get("/")
|
7 |
def greet_json():
|
8 |
return {"Hello": "World!"}
|
9 |
+
|
10 |
+
|
11 |
+
@app.get("/gas")
|
12 |
+
def greet_ajson():
|
13 |
+
return {"Hello": os.getenv("SITENAME")}
|
14 |
+
|