feat(api): завершение миграции на Fastify — sync, scheduler, backup
Docker / build (push) Has been cancelled

Портированы BILLmanager sync/test/balance, планировщик и Telegram,
импорт/экспорт бэкапов и migrate API; Docker по умолчанию на fastify.
Добавлен .understand-anything/ в gitignore, исправлен path codegraph в MCP.

Co-authored-by: Cursor <[email protected]>
This commit is contained in:
Denozordec
2026-06-27 23:22:59 +07:00
co-authored by Cursor
parent 836c8a2936
commit 0de0538218
24 changed files with 2192 additions and 46 deletions
+4
View File
@@ -19,6 +19,8 @@ import { syncRoutes } from './routes/sync.js'
import { projectsRoutes } from './routes/projects.js'
import { backupRoutes } from './routes/backup.js'
import { ratesProxyRoutes } from './routes/rates-proxy.js'
import { migrateRoutes } from './routes/migrate.js'
import { startScheduler } from './services/scheduler.js'
const __dirname = dirname(fileURLToPath(import.meta.url))
@@ -49,6 +51,7 @@ export async function buildApp(opts: BuildAppOptions = {}) {
await app.register(projectsRoutes)
await app.register(backupRoutes)
await app.register(ratesProxyRoutes)
await app.register(migrateRoutes)
const staticDir = opts.staticDir ?? join(__dirname, '..', '..', 'web', 'dist')
if (existsSync(staticDir)) {
@@ -72,6 +75,7 @@ export async function buildApp(opts: BuildAppOptions = {}) {
async function start() {
const port = Number(process.env.PORT ?? 3001)
const app = await buildApp()
startScheduler()
try {
await app.listen({ port, host: '0.0.0.0' })
} catch (err) {