diff --git a/backend/forum.py b/backend/forum.py index 603f37c..e5b39a1 100644 --- a/backend/forum.py +++ b/backend/forum.py @@ -23,13 +23,16 @@ class PostCreate(BaseModel): class Thread: id: int title: str + closed: bool - def __init__(self, id, title): + def __init__(self, id, title, closed=False): self.id = id self.title = title + self.closed = closed POSTS = [] +THREADS = [] @app.get("/")