feat(import): RennmausPro-III-Backup-Importer (analyze+execute, Dedup, Fotos)
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -416,6 +416,15 @@ export async function installMockApi(page: Page): Promise<MockDb> {
|
||||
return json(route, 405)
|
||||
}
|
||||
|
||||
// RPRO3: RennmausPro-III-Backup-Import (multipart-Upload). Mock liefert eine feste
|
||||
// Auswertung bzw. ein Import-Ergebnis — keine echte Datei-Verarbeitung.
|
||||
if (path === '/import/rpro3/analyze' && method === 'POST') {
|
||||
return json(route, 200, db.rpro3.analyze)
|
||||
}
|
||||
if (path === '/import/rpro3/execute' && method === 'POST') {
|
||||
return json(route, 200, db.rpro3.execute)
|
||||
}
|
||||
|
||||
// Generische Kollektionen: /<resource> und /<resource>/<id>
|
||||
m = path.match(/^\/([a-z-]+)(?:\/([^/]+))?$/)
|
||||
const col = m ? collections[m[1]] : undefined
|
||||
|
||||
Reference in New Issue
Block a user