mirror of
https://github.com/StepanovPlaton/torrent_backend.git
synced 2026-04-03 20:30:38 +04:00
16 lines
377 B
Python
16 lines
377 B
Python
from fastapi import Depends, FastAPI, HTTPException
|
|
from sqlalchemy.ext.asyncio import AsyncSession
|
|
import typer
|
|
|
|
import cli_commands
|
|
from routes import *
|
|
|
|
app = FastAPI()
|
|
app.include_router(startup_router)
|
|
app.include_router(games_router)
|
|
app.include_router(files_router)
|
|
|
|
cli = typer.Typer()
|
|
cli.add_typer(cli_commands.cli, name="database")
|
|
|
|
if(__name__ == "__main__"): cli() |