eramth commited on
Commit
cc2f080
·
verified ·
1 Parent(s): d3952b6

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -0
app.py ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ from fastapi import FastAPI
2
+ import requests
3
+
4
+ app = FastAPI()
5
+
6
+ @app.get("/")
7
+ def greet():
8
+ return requests.get("https://ipinfo.io/").json()