feat: ОК

This commit is contained in:
2026-03-11 21:51:04 +03:00
parent 51326f0fc2
commit f19c7856de
9 changed files with 238 additions and 16 deletions

0
app/__init__.py Normal file
View File

5
app/config.py Normal file
View File

@@ -0,0 +1,5 @@
from pydantic_settings import BaseSettings, SettingsConfigDict
class Settings(BaseSettings):
API_V1_STR: str = "/api/v1"
model_config = SettingsConfigDict(env_file=".env")

5
app/main.py Normal file
View File

@@ -0,0 +1,5 @@
from fastapi import FastAPI
from app.routes.OK import router as OK_router
app = FastAPI()
app.include_router(OK_router)

8
app/routes/OK.py Normal file
View File

@@ -0,0 +1,8 @@
from fastapi import APIRouter
router = APIRouter()
@router.get("/status")
async def status():
return "OK"

0
app/routes/__init__.py Normal file
View File