feat: project scaffold (FastAPI backend, React frontend, aiogram bot, docker-compose, CI/CD)

This commit is contained in:
apuc committed 2026-09-26 19:41:12 +03:00
1 parent 066deaca47
commit 71460ab56a
37 files changed
+936

No files matched your search

+29
View File
@@ -0,0 +1,29 @@
"""Точка входа FastAPI-приложения АС «Платформа ОПОРА РОССИИ»."""
from fastapi import FastAPI
from fastapi.middleware.cors import CORSMiddleware
from app.api.v1.router import api_router
from app.core.config import settings
app = FastAPI(
title="АС «Платформа ОПОРА РОССИИ»",
version="0.1.0",
docs_url="/api/docs",
openapi_url="/api/openapi.json",
)
app.add_middleware(
CORSMiddleware,
allow_origins=settings.cors_origins,
allow_credentials=True,
allow_methods=["*"],
allow_headers=["*"],
)
app.include_router(api_router, prefix="/api/v1")
@app.get("/health", tags=["system"])
def health() -> dict:
"""Проверка работоспособности."""
return {"status": "ok"}