/
ArchOracle
/
trading
Обзор
Документация
Войти
/
ArchOracle
/
trading
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
src/app/main.py
19 строк
549 B
ArchOracle
Добавил админку в main.py
30 апр 2026, 09:08
30 апр 2026, 09:08
380d13a
Код
Авторство
О чём код?
from fastapi import FastAPI from src.app.adapter.inbound.web.pages import router as web_router from src.app.adapter.inbound.http.routes import router as api_router from fastapi.staticfiles import StaticFiles app = FastAPI() app.include_router(web_router) app.include_router(api_router) app.mount( "/static", StaticFiles(directory="src/app/adapter/inbound/web/static"), name="static" ) import src.app.infrastructure.db.models from src.app.adapter.inbound.web.admin.routes import router as admin_router app.include_router(admin_router)