zliang commited on
Commit
e585fe2
1 Parent(s): f941793

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +4 -0
main.py CHANGED
@@ -8,6 +8,10 @@ app = FastAPI()
8
 
9
  BASE_URL = 'https://doi.org/'
10
 
 
 
 
 
11
  @app.get("/title2ref/")
12
  async def title2doi(title:str):
13
  cr = Crossref()
 
8
 
9
  BASE_URL = 'https://doi.org/'
10
 
11
+ @app.get("/")
12
+ def read_root():
13
+ return {"Hello": "Welcome to doi2ref, a GPTs who can turn doi into various reference formats"}
14
+
15
  @app.get("/title2ref/")
16
  async def title2doi(title:str):
17
  cr = Crossref()