summaryrefslogtreecommitdiff
path: root/Projekt/app/main.py
blob: 87db9d0ac665ea303b709b669f7643b2c89181d9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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"}