feat: add transmission client

feat: set defaultPath for any system
This commit is contained in:
MasutaYunikon committed 2026-04-07 19:04:26 +02:00
1 parent 5687aaa5d9
commit f304562f01
4 files changed
+161 -1

No files matched your search

+4
View File
@@ -13,6 +13,7 @@ import qbittorrentDriver from './torrent-clients/qbittorrent.js'
import { organizeTorrent, autoOrganizeAll, scanMediaPath, workerRunning } from './organize.js'
import { logger, readLogs, clearLogs, logsFileSize } from './logger.js'
import { DATA_DIR, BASE_DIR } from './config.js'
import { systemInfo } from './system.js'
registerDriver(qbittorrentDriver)
@@ -36,6 +37,9 @@ app.post('/api/auth/setup', authSetup)
app.post('/api/auth/login', authLogin)
app.post('/api/auth/logout', authLogout)
// system info
app.get('/api/system/info', systemInfo)
// ── Settings ───────────────────────────────────────────────────
app.get('/api/settings', requireAuth, (_req, res) => {
res.json(readSettings())