init commit

This commit is contained in:
Stanislaw
2023-05-15 22:41:28 +02:00
parent 10aac5802d
commit aea414f95d
8 changed files with 741 additions and 0 deletions

13
src/main.py Normal file
View File

@@ -0,0 +1,13 @@
from fastapi import FastAPI, HTTPException, Request
from fastapi.exceptions import RequestValidationError
from starlette.middleware.cors import CORSMiddleware
from starlette.responses import JSONResponse, StreamingResponse
from starlette.status import HTTP_401_UNAUTHORIZED
from typing import Union
from db import db_session
import os
app = FastAPI()
@app.get("/")
def read_root():
return {"Hello": "World"}