chore: log connector requests

This commit is contained in:
2026-08-03 08:47:36 +01:00
parent 8767fb7f48
commit 4a7e1b488d
+1
View File
@@ -27,6 +27,7 @@ const id = () => crypto.randomBytes(24).toString('base64url');
http.createServer(async (req, res) => { http.createServer(async (req, res) => {
const url = new URL(req.url, publicBaseUrl); const url = new URL(req.url, publicBaseUrl);
console.log(`${req.method} ${url.pathname}`);
if (req.method === 'GET' && url.pathname === '/.well-known/cleanstream-connector.json') return json(res, 200, { if (req.method === 'GET' && url.pathname === '/.well-known/cleanstream-connector.json') return json(res, 200, {
protocolVersion: 1, id: 'reference.home-library', name: 'Reference Home Library', capabilities: ['catalog', 'stream'], protocolVersion: 1, id: 'reference.home-library', name: 'Reference Home Library', capabilities: ['catalog', 'stream'],
endpoints: { catalog: '/v1/catalog', stream: '/v1/stream', pairStart: '/v1/pair/start', pairStatus: '/v1/pair/{sessionId}', pairToken: '/v1/pair/token' } endpoints: { catalog: '/v1/catalog', stream: '/v1/stream', pairStart: '/v1/pair/start', pairStatus: '/v1/pair/{sessionId}', pairToken: '/v1/pair/token' }