diff options
author | Rasmus Luha <rasmus.luha@gmail.com> | 2022-02-06 13:10:32 +0200 |
---|---|---|
committer | Rasmus Luha <rasmus.luha@gmail.com> | 2022-02-06 13:10:32 +0200 |
commit | 5e19a0569288de21365c61b0db78639880732dd0 (patch) | |
tree | e1d3add7376b53157fe8830cbd81b02c1a3a3586 /Projekt/app/main.py |
inital commit
Diffstat (limited to 'Projekt/app/main.py')
-rw-r--r-- | Projekt/app/main.py | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/Projekt/app/main.py b/Projekt/app/main.py new file mode 100644 index 0000000..87db9d0 --- /dev/null +++ b/Projekt/app/main.py @@ -0,0 +1,17 @@ +from fastapi import FastAPI +from . import models +from .database import engine, SessionLocal +from .routers import post, user, auth, vote +from .config import settings + +models.Base.metadata.create_all(bind=engine) +app = FastAPI() + +app.include_router(post.router) +app.include_router(user.router) +app.include_router(auth.router) +app.include_router(vote.router) + +@app.get("/") +async def root(): + return {"message" : "Hellow piipl"} |