Init backend

This commit is contained in:
Curt Spark 2024-04-15 16:04:19 +01:00
commit cf83399182
2 changed files with 26 additions and 0 deletions

14
main.py Normal file
View File

@ -0,0 +1,14 @@
from typing import Union
from fastapi import FastAPI
app = FastAPI()
@app.get("/")
def root():
return {"Hello": "World"}
@app.get("/api")
def root():
return {"Hello": "API!"}

12
requirements.txt Normal file
View File

@ -0,0 +1,12 @@
annotated-types==0.6.0
anyio==4.3.0
click==8.1.7
fastapi==0.110.1
h11==0.14.0
idna==3.7
pydantic==2.7.0
pydantic_core==2.18.1
sniffio==1.3.1
starlette==0.37.2
typing_extensions==4.11.0
uvicorn==0.29.0