fix: enhance type hints for health check and root endpoints
Some checks failed
CI/CD Pipeline / Generate Documentation (push) Successful in 4m36s
CI/CD Pipeline / Lint Code (push) Successful in 4m59s
CI/CD Pipeline / Run Tests (push) Successful in 4m16s
CI/CD Pipeline / Security Scanning (push) Successful in 4m15s
CI/CD Pipeline / Build and Push Docker Images (api) (push) Failing after 1m20s
CI/CD Pipeline / Build and Push Docker Images (worker) (push) Failing after 1m14s
CI/CD Pipeline / Build and Push Docker Images (chat) (push) Failing after 1m19s
CI/CD Pipeline / Build and Push Docker Images (frontend) (push) Successful in 1m24s
CI/CD Pipeline / Deploy to Staging (push) Has been skipped
CI/CD Pipeline / Deploy to Production (push) Has been skipped
Some checks failed
CI/CD Pipeline / Generate Documentation (push) Successful in 4m36s
CI/CD Pipeline / Lint Code (push) Successful in 4m59s
CI/CD Pipeline / Run Tests (push) Successful in 4m16s
CI/CD Pipeline / Security Scanning (push) Successful in 4m15s
CI/CD Pipeline / Build and Push Docker Images (api) (push) Failing after 1m20s
CI/CD Pipeline / Build and Push Docker Images (worker) (push) Failing after 1m14s
CI/CD Pipeline / Build and Push Docker Images (chat) (push) Failing after 1m19s
CI/CD Pipeline / Build and Push Docker Images (frontend) (push) Successful in 1m24s
CI/CD Pipeline / Deploy to Staging (push) Has been skipped
CI/CD Pipeline / Deploy to Production (push) Has been skipped
This commit is contained in:
@@ -4,7 +4,9 @@ Chat server stub for development.
|
||||
TODO: Implement full chat server with WebSocket support.
|
||||
Currently this is a minimal stub to allow the development environment to start.
|
||||
"""
|
||||
|
||||
import logging
|
||||
|
||||
from fastapi import FastAPI
|
||||
from fastapi.middleware.cors import CORSMiddleware
|
||||
|
||||
@@ -30,13 +32,13 @@ app.add_middleware(
|
||||
|
||||
|
||||
@app.get("/health")
|
||||
async def health_check():
|
||||
async def health_check() -> dict[str, str | bool]:
|
||||
"""Health check endpoint."""
|
||||
return {"status": "ok", "service": "chat", "implemented": False}
|
||||
|
||||
|
||||
@app.get("/")
|
||||
async def root():
|
||||
async def root() -> dict[str, str]:
|
||||
"""Root endpoint."""
|
||||
return {
|
||||
"message": "Chat server stub - not yet implemented",
|
||||
|
||||
Reference in New Issue
Block a user