Add swagger examples and description

This commit is contained in:
2024-05-14 10:21:54 +04:00
parent 6c40917220
commit 0565efdd15
7 changed files with 85 additions and 54 deletions

View File

@@ -5,7 +5,14 @@ import typer
import cli_commands
from routes import *
app = FastAPI()
app = FastAPI(
title=".Torrent",
description=".Torrent - сервис обмена .torrent файлами видеоигр, фильмов и аудиокниг",
contact={
"name": "Платон (разработчик)",
"url": "https://github.com/StepanovPlaton"
},
)
app.include_router(startup_router)
app.include_router(games_router)
app.include_router(files_router)