From f5b274a6781a9c6665aa7926787f4dcd07e4c175 Mon Sep 17 00:00:00 2001 From: Hannah dagemark Date: Thu, 6 Aug 2026 22:56:13 +0200 Subject: [PATCH] Removed redundant stuff --- app/logic/example_logic.py | 5 ----- app/logic/project_logic.py | 8 -------- app/main.py | 4 +--- app/models/example_model.py | 12 ------------ app/routers/example_route.py | 15 --------------- 5 files changed, 1 insertion(+), 43 deletions(-) delete mode 100644 app/logic/example_logic.py delete mode 100644 app/models/example_model.py delete mode 100644 app/routers/example_route.py diff --git a/app/logic/example_logic.py b/app/logic/example_logic.py deleted file mode 100644 index a9f8488..0000000 --- a/app/logic/example_logic.py +++ /dev/null @@ -1,5 +0,0 @@ -def get_example_message(): - - return { - "message": "Hello, this is an example response :]" - } \ No newline at end of file diff --git a/app/logic/project_logic.py b/app/logic/project_logic.py index 3da73ea..43947ad 100644 --- a/app/logic/project_logic.py +++ b/app/logic/project_logic.py @@ -7,14 +7,6 @@ from app.database import ( ) from app.models.project import Project -# For now, this is a manifest for the project model architecture: - -# A project consists of: -# ID (Autoincrement num, required), -# Parent (Num, optional, if this field contains a number (not none or 0), it is considered a child project of project with ID = num) -# Title (Required, text), -# Content (Optional, for now is string text but needs to store full Markdown including images in the future) - def get_all(): return get_from_database(Project) diff --git a/app/main.py b/app/main.py index 6ca1f72..c209240 100644 --- a/app/main.py +++ b/app/main.py @@ -4,7 +4,7 @@ from fastapi import FastAPI from app.config import settings from app.database import create_database -from app.routers import example_route, project_route +from app.routers import project_route @asynccontextmanager @@ -22,6 +22,4 @@ app = FastAPI( ) -app.include_router(example_route.router) - app.include_router(project_route.router) diff --git a/app/models/example_model.py b/app/models/example_model.py deleted file mode 100644 index 5ea8f94..0000000 --- a/app/models/example_model.py +++ /dev/null @@ -1,12 +0,0 @@ -from sqlmodel import SQLModel, Field - -class ExampleModel(SQLModel, table=True): - - id: int | None = Field( - default=None, - primary_key=True - ) - - example_text: str - - example_number: int \ No newline at end of file diff --git a/app/routers/example_route.py b/app/routers/example_route.py deleted file mode 100644 index c153c17..0000000 --- a/app/routers/example_route.py +++ /dev/null @@ -1,15 +0,0 @@ -from fastapi import APIRouter - -from app.logic.example_logic import get_example_message - -router = APIRouter( - prefix="/example", - tags=["Example"] -) - -@router.get("/") -def get_example(): - - return( - get_example_message() - ) \ No newline at end of file