feat: ajout d'une "notification" dans la navbar si une nouvelle versions est disponible

feat: activation de l'import manuel
This commit is contained in:
MasutaYunikon committed 2026-04-10 18:05:47 +02:00
1 parent 71961eb998
commit c94ff7da3f
6 files changed
+198 -60

No files matched your search

+12
View File
@@ -480,6 +480,18 @@ app.get('/api/system', requireAuth, (_req, res) => {
res.json({ isDocker: fs.existsSync('/.dockerenv') })
})
app.get('/api/version', (_req, res) => {
try {
const versionPath = path.join(BASE_DIR, 'version.txt')
const version = fs.existsSync(versionPath)
? fs.readFileSync(versionPath, 'utf-8').trim()
: 'dev'
res.json({ version })
} catch {
res.json({ version: 'dev' })
}
})
app.get('/api/browse', requireAuth, (req, res) => {
const dirPath = (req.query.path as string) || '/'
try {