diff --git a/backend/main.py b/backend/main.py
index f91b25a..e7cc082 100644
--- a/backend/main.py
+++ b/backend/main.py
@@ -1,5 +1,6 @@
# Load environment variables first
from dotenv import load_dotenv
+from fastapi.responses import HTMLResponse
load_dotenv()
@@ -38,6 +39,13 @@ SHOULD_MOCK_AI_RESPONSE = bool(os.environ.get("MOCK", False))
app.include_router(screenshot.router)
+@app.get("/")
+async def get_status():
+ return HTMLResponse(
+ content="
Your backend is running correctly. Please open the front-end URL (default is http://localhost:5173) to use screenshot-to-code.
"
+ )
+
+
def write_logs(prompt_messages, completion):
# Get the logs path from environment, default to the current working directory
logs_path = os.environ.get("LOGS_PATH", os.getcwd())
diff --git a/frontend/src/components/UrlInputSection.tsx b/frontend/src/components/UrlInputSection.tsx
index abf50a9..e2137e1 100644
--- a/frontend/src/components/UrlInputSection.tsx
+++ b/frontend/src/components/UrlInputSection.tsx
@@ -59,7 +59,7 @@ export function UrlInputSection({ doCreate, screenshotOneApiKey }: Props) {
}
return (
-