From 4b0a73479984a41799127e28590f16f864ca8324 Mon Sep 17 00:00:00 2001 From: lakshmisravya123 Date: Fri, 13 Feb 2026 21:03:07 -0800 Subject: [PATCH] fix: fix /about route - add missing import and correct response text (#31) The /about route had two issues: 1. PlainTextResponse was used as response_class but never imported, causing a NameError at runtime 2. Response text was "This is all backend" instead of "This is all about backend" per the spec --- app/main.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/main.py b/app/main.py index 1750389..e466daa 100644 --- a/app/main.py +++ b/app/main.py @@ -1,4 +1,5 @@ from fastapi import FastAPI, HTTPException +from fastapi.responses import PlainTextResponse from contextlib import asynccontextmanager from pydantic import BaseModel from typing import Optional @@ -78,9 +79,9 @@ def create_task(task: TaskCreate): except Exception as e: raise HTTPException(status_code=500, detail=str(e)) -@app.get("/about",response_class=PlainTextResponse) +@app.get("/about", response_class=PlainTextResponse) def about_backend(): - return "This is all backend" + return "This is all about backend" @app.get("/tasks") def list_tasks(limit: int = 100):