Update language, add LICENSE and README
All checks were successful
Build & Push Docker Image / build (push) Successful in 1m9s

This commit is contained in:
2026-02-24 21:04:19 +01:00
parent 2ef6a9f30b
commit 7426ae8088
8 changed files with 668 additions and 106 deletions

View File

@@ -26,7 +26,7 @@ router.get('/', authenticateToken, async (req, res) => {
return {
recordID: rec.recordID,
meetingID: rec.meetingID,
name: rec.name || 'Aufnahme',
name: rec.name || 'Recording',
state: rec.state,
published: rec.published === 'true',
startTime: rec.startTime,
@@ -46,7 +46,7 @@ router.get('/', authenticateToken, async (req, res) => {
res.json({ recordings: formatted });
} catch (err) {
console.error('Get recordings error:', err);
res.status(500).json({ error: 'Aufnahmen konnten nicht geladen werden', recordings: [] });
res.status(500).json({ error: 'Recordings could not be loaded', recordings: [] });
}
});
@@ -57,7 +57,7 @@ router.get('/room/:uid', authenticateToken, async (req, res) => {
const room = await db.get('SELECT * FROM rooms WHERE uid = ?', [req.params.uid]);
if (!room) {
return res.status(404).json({ error: 'Raum nicht gefunden' });
return res.status(404).json({ error: 'Room not found' });
}
const recordings = await getRecordings(room.uid);
@@ -90,7 +90,7 @@ router.get('/room/:uid', authenticateToken, async (req, res) => {
res.json({ recordings: formatted });
} catch (err) {
console.error('Get room recordings error:', err);
res.status(500).json({ error: 'Aufnahmen konnten nicht geladen werden', recordings: [] });
res.status(500).json({ error: 'Recordings could not be loaded', recordings: [] });
}
});
@@ -98,10 +98,10 @@ router.get('/room/:uid', authenticateToken, async (req, res) => {
router.delete('/:recordID', authenticateToken, async (req, res) => {
try {
await deleteRecording(req.params.recordID);
res.json({ message: 'Aufnahme gelöscht' });
res.json({ message: 'Recording deleted' });
} catch (err) {
console.error('Delete recording error:', err);
res.status(500).json({ error: 'Aufnahme konnte nicht gelöscht werden' });
res.status(500).json({ error: 'Recording could not be deleted' });
}
});
@@ -110,10 +110,10 @@ router.put('/:recordID/publish', authenticateToken, async (req, res) => {
try {
const { publish } = req.body;
await publishRecording(req.params.recordID, publish);
res.json({ message: publish ? 'Aufnahme veröffentlicht' : 'Aufnahme nicht mehr öffentlich' });
res.json({ message: publish ? 'Recording published' : 'Recording unpublished' });
} catch (err) {
console.error('Publish recording error:', err);
res.status(500).json({ error: 'Aufnahme konnte nicht aktualisiert werden' });
res.status(500).json({ error: 'Recording could not be updated' });
}
});