- FastAPI REST API with JWT auth - aiogram 3 Telegram bot with admin middleware - APScheduler daily tasks (expiry, reminders, revoke, sync) - SQLAlchemy 2 async ORM with Alembic migrations - Jinja2 admin panel (Dashboard, Users, Payments, Servers, Tariffs) - VPN provider abstraction with MockProvider - Stats service with revenue/subscription analytics - Docker Compose (PostgreSQL + Redis + app) - Healthcheck endpoint
18 lines
616 B
Python
18 lines
616 B
Python
from fastapi import APIRouter
|
|
|
|
from app.api.v1.auth import router as auth_router
|
|
from app.api.v1.users import router as users_router
|
|
from app.api.v1.payments import router as payments_router
|
|
from app.api.v1.tariffs import router as tariffs_router
|
|
from app.api.v1.servers import router as servers_router
|
|
from app.api.v1.stats import router as stats_router
|
|
|
|
router = APIRouter(prefix="/api/v1")
|
|
|
|
router.include_router(auth_router)
|
|
router.include_router(users_router)
|
|
router.include_router(payments_router)
|
|
router.include_router(tariffs_router)
|
|
router.include_router(servers_router)
|
|
router.include_router(stats_router)
|