feat(git): Git-Backend über HTTPS + PAT (ADR 0003): Krypto, SSRF-Policy, git-Client ohne Arbeitskopie, Sync/Konflikte, /api/git/*, Hooks und Tests

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
dev-bot BotandClaude Sonnet 5.5 committed 2026-11-25 14:34:11 +00:00
1 parent d2801b2d6c
commit fe9efc155e
18 files changed
+1837 -9

No files matched your search

+4
View File
@@ -36,6 +36,7 @@ import dbCheck from './middleware/dbCheck.js';
import { readAuthConfig, accountMiddleware, createAuthRouter, clientConfig as authClientConfig } from './fork/auth/index.js';
import { getStorage } from './storage/index.js';
import { createGitBackend } from './fork/git/index.js';
import cors from 'cors';
@@ -123,6 +124,9 @@ export default async function createApp(vite) {
brewAuthorExists : (name)=>getStorage().brews.existsAuthor(name)
}));
// Fork: Git-Backend (ADR 0003): /api/git/* und Abgleich bei GET /edit/:id, vor pageRoutes
app.use(createGitBackend({ getStorage, api, splitTextStyleAndMetadata }).router);
app.use(homebrewApi);
app.use(adminApi(vite));
app.use(vaultApi);