Reformats Endpoints Configuration and Start Script

This commit is contained in:
2024-05-21 20:36:16 -03:00
parent 000cb08e37
commit c59dc14810
10 changed files with 92 additions and 117 deletions

View File

@@ -5,11 +5,11 @@ from storage_service.model.health_check.health_check_response import (
from fastapi import APIRouter
from fastapi_utils.cbv import cbv
health_router = APIRouter(tags=["health"])
router = APIRouter(tags=["health"])
@cbv(health_router)
@cbv(router)
class HealthCheckerController:
@health_router.get("/health", status_code=200)
@router.get("/health", status_code=200)
def health(self) -> HealthCheckResponse:
return HealthCheckResponse(status="healthy")