Update main.py
Browse files
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()
|