Update healthcheck

This commit is contained in:
2022-02-12 13:02:23 +03:00
parent e3b5cf7b7a
commit d73afc9e0a
2 changed files with 3 additions and 9 deletions

View File

@@ -1,13 +1,7 @@
from fastapi import APIRouter, Depends from fastapi import APIRouter
from app.depends import check_token
healtcheck_router = APIRouter( healtcheck_router = APIRouter(tags=["healthcheck"])
prefix="/api/v1",
tags=["healthcheck"],
dependencies=[Depends(check_token)],
)
@healtcheck_router.get("/healthcheck") @healtcheck_router.get("/healthcheck")

View File

@@ -4,7 +4,7 @@ import httpx
response = httpx.get( response = httpx.get(
"http://localhost:8080/api/v1/healthcheck", "http://localhost:8080/healthcheck",
headers={"Authorization": os.environ["API_KEY"]}, headers={"Authorization": os.environ["API_KEY"]},
) )
print(f"HEALTHCHECK STATUS: {response.status_code}") print(f"HEALTHCHECK STATUS: {response.status_code}")