From e3be0498704e2eef04d6b5f0cfc0f2960c352a2f Mon Sep 17 00:00:00 2001 From: Borgia Leiva Date: Tue, 27 Jan 2026 12:46:45 +0100 Subject: [PATCH] Added some joke and info root endpoint and some TODOs --- main.py | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/main.py b/main.py index 1c25965..ba94a7a 100644 --- a/main.py +++ b/main.py @@ -1,14 +1,23 @@ from fastapi import FastAPI, HTTPException, Depends -from routers.tasks import router as tasks_router from routers.projects import router as projects_router +from routers.users import router as users_router app = FastAPI() -app.include_router(tasks_router) +app.include_router(users_router) app.include_router(projects_router) """ping pong :)""" @app.get("/ping") def ping(): - return {"message": "pong"} \ No newline at end of file + return {"message": "pong"} + +"""Gives project url""" +@app.get("/sources") +def source(): + return {"url": "https://github.com/a-mayb3/Kanban_clone_backend"} + +## TODO: Add root endpoint that gives basic info about the API +## TODO: Add more detailed error handling and logging +## TODO: Implement authentication and authorization mechanisms