Initial Commit
This commit is contained in:
@@ -0,0 +1,147 @@
|
||||
// In-memory admin state for the mock backend. Mirrors GlobalSettings / Source / TrackedEvent
|
||||
// from homefeed-data-schema.md. Real backend replaces this with SQLite-backed storage.
|
||||
|
||||
let settings = {
|
||||
mergeStrictness: 3,
|
||||
defaultPollIntervalMinutes: 15,
|
||||
holdBeforePublishMinutes: 30,
|
||||
tagDedupThreshold: 0.82,
|
||||
tagExpiryDays: 21,
|
||||
followUpMinHoursSinceLast: 6,
|
||||
followUpMinNewSources: 2,
|
||||
aiServiceHost: "http://10.0.0.14",
|
||||
aiServicePort: 11434,
|
||||
selectedModels: {
|
||||
embedding: "nomic-embed-text-v1.5",
|
||||
image: "clip-vit-b32",
|
||||
synthesis: "qwen2.5:7b-instruct-q4_K_M"
|
||||
},
|
||||
retention: {
|
||||
publishedArticleMaxAgeDays: 7,
|
||||
rawItemMaxAgeDays: 7,
|
||||
storageCapEnabled: true,
|
||||
storageCapValue: 500,
|
||||
storageCapUnit: "GB",
|
||||
storageUsedMB: 214
|
||||
},
|
||||
categoryPriority: [
|
||||
{ id: "cat-top", name: "Top stories", priorityRank: 1 },
|
||||
{ id: "cat-local", name: "Local", priorityRank: 2 },
|
||||
{ id: "cat-world", name: "World", priorityRank: 3 },
|
||||
{ id: "cat-business", name: "Business", priorityRank: 4 },
|
||||
{ id: "cat-tech", name: "Tech", priorityRank: 5 },
|
||||
{ id: "cat-culture", name: "Culture", priorityRank: 6 }
|
||||
]
|
||||
};
|
||||
|
||||
let sources = [
|
||||
{
|
||||
id: "src-1",
|
||||
name: "Reuters World",
|
||||
type: "rss",
|
||||
category: ["World"],
|
||||
url: "https://reuters.com/world/rss",
|
||||
pollIntervalMinutes: 15,
|
||||
enabled: true,
|
||||
lastPolledAt: new Date(Date.now() - 6 * 60000).toISOString(),
|
||||
lastError: null
|
||||
},
|
||||
{
|
||||
id: "src-2",
|
||||
name: "Middle East Watch",
|
||||
type: "telegram",
|
||||
category: ["Iran war (event)"],
|
||||
url: "@meast_watch",
|
||||
pollIntervalMinutes: 5,
|
||||
enabled: true,
|
||||
lastPolledAt: new Date(Date.now() - 2 * 60000).toISOString(),
|
||||
lastError: null
|
||||
},
|
||||
{
|
||||
id: "src-3",
|
||||
name: "6ABC Philadelphia",
|
||||
type: "rss",
|
||||
category: ["Local: Philadelphia"],
|
||||
url: "https://6abc.com/feed",
|
||||
pollIntervalMinutes: 10,
|
||||
enabled: true,
|
||||
lastPolledAt: new Date(Date.now() - 4 * 60000).toISOString(),
|
||||
lastError: null
|
||||
},
|
||||
{
|
||||
id: "src-4",
|
||||
name: "PennDOT Alerts",
|
||||
type: "rss",
|
||||
category: ["Local: Philadelphia"],
|
||||
url: "https://penndot.pa.gov/alerts/feed",
|
||||
pollIntervalMinutes: 10,
|
||||
enabled: true,
|
||||
lastPolledAt: new Date(Date.now() - 40 * 60000).toISOString(),
|
||||
lastError: "502 Bad Gateway"
|
||||
}
|
||||
];
|
||||
|
||||
let events = [
|
||||
{
|
||||
id: "evt-iran",
|
||||
name: "Iran war",
|
||||
description: "Ongoing conflict coverage, sourced primarily from Telegram channels for speed.",
|
||||
sourceIds: ["src-2"],
|
||||
cadence: "daily",
|
||||
cadenceTime: "18:00",
|
||||
active: true,
|
||||
retentionOverrideDays: null
|
||||
},
|
||||
{
|
||||
id: "evt-fed",
|
||||
name: "Fed rate decisions",
|
||||
description: "",
|
||||
sourceIds: ["src-1"],
|
||||
cadence: "continuous",
|
||||
cadenceTime: null,
|
||||
active: true,
|
||||
retentionOverrideDays: 7
|
||||
}
|
||||
];
|
||||
|
||||
// Simulated Ollama-backed model catalog, per task
|
||||
const models = {
|
||||
embedding: ["nomic-embed-text-v1.5", "all-MiniLM-L6-v2"],
|
||||
image: ["clip-vit-b32", "siglip-base"],
|
||||
synthesis: ["qwen2.5:7b-instruct-q4_K_M", "phi3.5:3.8b-mini-instruct-q4", "llama3.1:8b-instruct-q4"]
|
||||
};
|
||||
|
||||
module.exports = {
|
||||
getSettings: () => settings,
|
||||
updateSettings: (patch) => {
|
||||
settings = { ...settings, ...patch, retention: { ...settings.retention, ...(patch.retention || {}) } };
|
||||
return settings;
|
||||
},
|
||||
getSources: () => sources,
|
||||
addSource: (source) => {
|
||||
const newSource = { id: `src-${Date.now()}`, lastPolledAt: null, lastError: null, enabled: true, ...source };
|
||||
sources = [...sources, newSource];
|
||||
return newSource;
|
||||
},
|
||||
updateSource: (id, patch) => {
|
||||
sources = sources.map((s) => (s.id === id ? { ...s, ...patch } : s));
|
||||
return sources.find((s) => s.id === id);
|
||||
},
|
||||
deleteSource: (id) => {
|
||||
sources = sources.filter((s) => s.id !== id);
|
||||
},
|
||||
getEvents: () => events,
|
||||
addEvent: (event) => {
|
||||
const newEvent = { id: `evt-${Date.now()}`, active: true, sourceIds: [], ...event };
|
||||
events = [...events, newEvent];
|
||||
return newEvent;
|
||||
},
|
||||
updateEvent: (id, patch) => {
|
||||
events = events.map((e) => (e.id === id ? { ...e, ...patch } : e));
|
||||
return events.find((e) => e.id === id);
|
||||
},
|
||||
deleteEvent: (id) => {
|
||||
events = events.filter((e) => e.id !== id);
|
||||
},
|
||||
getModels: () => models
|
||||
};
|
||||
@@ -0,0 +1,224 @@
|
||||
// Dummy data matching MergedArticle / Tag / TrackedEvent shapes from homefeed-data-schema.md
|
||||
// Images are placeholder URLs (picsum.photos) fetched by the browser at runtime, not by this server.
|
||||
|
||||
const img = (seed, w = 900, h = 540) => `https://picsum.photos/seed/${seed}/${w}/${h}`;
|
||||
const hoursAgo = (h) => new Date(Date.now() - h * 3600 * 1000).toISOString();
|
||||
|
||||
const articles = [
|
||||
{
|
||||
id: "art-1",
|
||||
title: "Coalition talks resume as ministers signal a shift on trade rules",
|
||||
body:
|
||||
"Negotiators returned to the table this week after a two-month pause in talks over cross-border trade rules. Reuters reported the earlier pause followed a dispute over proposed tariff timelines, while the Associated Press notes that both delegations have since dropped their public objections to the original framework.\n\nThe Guardian's coverage adds that a signing event is tentatively planned for next week, pending final sign-off from both finance ministries. The Washington Post, citing a senior trade official, describes the remaining disagreements as procedural rather than substantive.",
|
||||
heroImage: { url: img("trade-talks"), sourceItemId: "ci-101", selectionReason: "Widest shot showing both delegations at the table" },
|
||||
video: { url: "", provider: "Reuters", sourceItemId: "ci-101" },
|
||||
category: ["World"],
|
||||
geo: null,
|
||||
eventId: null,
|
||||
sourceCount: 4,
|
||||
sources: [
|
||||
{ itemId: "ci-101", sourceName: "Reuters", link: "https://example.com/reuters/1", publishedAt: hoursAgo(6) },
|
||||
{ itemId: "ci-102", sourceName: "Associated Press", link: "https://example.com/ap/1", publishedAt: hoursAgo(5.5) },
|
||||
{ itemId: "ci-103", sourceName: "The Guardian", link: "https://example.com/guardian/1", publishedAt: hoursAgo(5.2) },
|
||||
{ itemId: "ci-104", sourceName: "Washington Post", link: "https://example.com/wapo/1", publishedAt: hoursAgo(4.5) }
|
||||
],
|
||||
publishedAt: hoursAgo(6),
|
||||
updatedAt: hoursAgo(3.8),
|
||||
mergeConfidence: 0.91,
|
||||
tags: ["tag-trade-talks", "tag-trump"],
|
||||
threadId: "thread-trade-2026",
|
||||
previousArticleId: null,
|
||||
nextArticleId: "art-2"
|
||||
},
|
||||
{
|
||||
id: "art-2",
|
||||
title: "Trade deal signed after final overnight session",
|
||||
body:
|
||||
"Ministers signed the finalized trade agreement early this morning after a session that ran past 2am, according to Reuters and Bloomberg. The deal narrows tariff exemptions but preserves the core framework both sides agreed to in principle last week.\n\nBloomberg reports markets responded positively in early trading, with export-heavy sectors seeing the largest gains.",
|
||||
heroImage: { url: img("trade-signed"), sourceItemId: "ci-140", selectionReason: "Signing ceremony, clearest depiction of the event" },
|
||||
video: null,
|
||||
category: ["World"],
|
||||
geo: null,
|
||||
eventId: null,
|
||||
sourceCount: 2,
|
||||
sources: [
|
||||
{ itemId: "ci-140", sourceName: "Reuters", link: "https://example.com/reuters/2", publishedAt: hoursAgo(1.5) },
|
||||
{ itemId: "ci-141", sourceName: "Bloomberg", link: "https://example.com/bloomberg/1", publishedAt: hoursAgo(1.2) }
|
||||
],
|
||||
publishedAt: hoursAgo(1.1),
|
||||
updatedAt: hoursAgo(1.1),
|
||||
mergeConfidence: 0.88,
|
||||
tags: ["tag-trade-talks"],
|
||||
threadId: "thread-trade-2026",
|
||||
previousArticleId: "art-1",
|
||||
nextArticleId: null
|
||||
},
|
||||
{
|
||||
id: "art-3",
|
||||
title: "Housing bill signed into law after months of negotiation",
|
||||
body: "The measure passed with bipartisan support after several rounds of amendments. Washington Post reports the bill includes new funding for first-time buyer assistance programs.",
|
||||
heroImage: { url: img("housing-bill"), sourceItemId: "ci-201", selectionReason: "Single source, original image retained" },
|
||||
video: null,
|
||||
category: ["Business"],
|
||||
geo: null,
|
||||
eventId: null,
|
||||
sourceCount: 1,
|
||||
sources: [{ itemId: "ci-201", sourceName: "Washington Post", link: "https://example.com/wapo/2", publishedAt: hoursAgo(9) }],
|
||||
publishedAt: hoursAgo(9),
|
||||
updatedAt: hoursAgo(9),
|
||||
mergeConfidence: 1.0,
|
||||
tags: [],
|
||||
threadId: "thread-housing",
|
||||
previousArticleId: null,
|
||||
nextArticleId: null
|
||||
},
|
||||
{
|
||||
id: "art-4",
|
||||
title: "Retail earnings beat expectations across the board",
|
||||
body: "Major retailers posted stronger than forecast quarterly results, with Fortune noting consumer spending held up despite earlier concerns about a slowdown.",
|
||||
heroImage: { url: img("retail-earnings"), sourceItemId: "ci-210", selectionReason: "Single source" },
|
||||
video: null,
|
||||
category: ["Business"],
|
||||
geo: null,
|
||||
eventId: null,
|
||||
sourceCount: 1,
|
||||
sources: [{ itemId: "ci-210", sourceName: "Fortune", link: "https://example.com/fortune/1", publishedAt: hoursAgo(12) }],
|
||||
publishedAt: hoursAgo(12),
|
||||
updatedAt: hoursAgo(12),
|
||||
mergeConfidence: 1.0,
|
||||
tags: [],
|
||||
threadId: "thread-retail",
|
||||
previousArticleId: null,
|
||||
nextArticleId: null
|
||||
},
|
||||
{
|
||||
id: "art-5",
|
||||
title: "Open-source model matches proprietary benchmark on reasoning tasks",
|
||||
body: "Ars Technica reports the newly released open-weight model scored within a few points of leading closed models on a widely cited reasoning benchmark, while running on consumer-grade hardware.",
|
||||
heroImage: { url: img("oss-model"), sourceItemId: "ci-301", selectionReason: "Single source" },
|
||||
video: null,
|
||||
category: ["Tech"],
|
||||
geo: null,
|
||||
eventId: null,
|
||||
sourceCount: 1,
|
||||
sources: [{ itemId: "ci-301", sourceName: "Ars Technica", link: "https://example.com/ars/1", publishedAt: hoursAgo(7.5) }],
|
||||
publishedAt: hoursAgo(7.5),
|
||||
updatedAt: hoursAgo(7.5),
|
||||
mergeConfidence: 1.0,
|
||||
tags: ["tag-ai-models"],
|
||||
threadId: "thread-oss-model",
|
||||
previousArticleId: null,
|
||||
nextArticleId: null
|
||||
},
|
||||
{
|
||||
id: "art-6",
|
||||
title: "Browser vendor rolls out default tracker blocking",
|
||||
body: "The Verge reports the change applies to all users by default starting with this release, with an opt-out available in privacy settings.",
|
||||
heroImage: { url: img("browser-privacy"), sourceItemId: "ci-310", selectionReason: "Single source" },
|
||||
video: null,
|
||||
category: ["Tech"],
|
||||
geo: null,
|
||||
eventId: null,
|
||||
sourceCount: 1,
|
||||
sources: [{ itemId: "ci-310", sourceName: "The Verge", link: "https://example.com/verge/1", publishedAt: hoursAgo(11) }],
|
||||
publishedAt: hoursAgo(11),
|
||||
updatedAt: hoursAgo(11),
|
||||
mergeConfidence: 1.0,
|
||||
tags: [],
|
||||
threadId: "thread-browser",
|
||||
previousArticleId: null,
|
||||
nextArticleId: null
|
||||
},
|
||||
{
|
||||
id: "local-1",
|
||||
title: "City council approves new transit corridor along Broad Street",
|
||||
body: "6ABC and the Inquirer both reported the council vote passed 12-3, with construction expected to begin next spring. The Inquirer's coverage adds that the project timeline could shift depending on federal funding approval.",
|
||||
heroImage: { url: img("transit-corridor"), sourceItemId: "ci-401", selectionReason: "Clearest depiction of the proposed route" },
|
||||
video: null,
|
||||
category: ["Local"],
|
||||
geo: "philadelphia",
|
||||
eventId: null,
|
||||
sourceCount: 2,
|
||||
sources: [
|
||||
{ itemId: "ci-401", sourceName: "6ABC", link: "https://example.com/6abc/1", publishedAt: hoursAgo(10) },
|
||||
{ itemId: "ci-402", sourceName: "The Inquirer", link: "https://example.com/inquirer/1", publishedAt: hoursAgo(9.3) }
|
||||
],
|
||||
publishedAt: hoursAgo(10),
|
||||
updatedAt: hoursAgo(9.3),
|
||||
mergeConfidence: 0.82,
|
||||
tags: [],
|
||||
threadId: "thread-transit",
|
||||
previousArticleId: null,
|
||||
nextArticleId: null
|
||||
},
|
||||
{
|
||||
id: "local-2",
|
||||
title: "School district announces revised calendar for fall term",
|
||||
body: "WHYY reports the district moved the first day back by one week to accommodate facility upgrades over the summer.",
|
||||
heroImage: { url: img("school-calendar"), sourceItemId: "ci-410", selectionReason: "Single source" },
|
||||
video: null,
|
||||
category: ["Local"],
|
||||
geo: "philadelphia",
|
||||
eventId: null,
|
||||
sourceCount: 1,
|
||||
sources: [{ itemId: "ci-410", sourceName: "WHYY", link: "https://example.com/whyy/1", publishedAt: hoursAgo(13) }],
|
||||
publishedAt: hoursAgo(13),
|
||||
updatedAt: hoursAgo(13),
|
||||
mergeConfidence: 1.0,
|
||||
tags: [],
|
||||
threadId: "thread-school",
|
||||
previousArticleId: null,
|
||||
nextArticleId: null
|
||||
},
|
||||
{
|
||||
id: "local-3",
|
||||
title: "Fireworks show draws record crowd to Penn's Landing",
|
||||
body: "6ABC's coverage includes video from the riverfront as the annual show drew what organizers called its largest crowd yet.",
|
||||
heroImage: { url: img("fireworks"), sourceItemId: "ci-420", selectionReason: "Single source" },
|
||||
video: { url: "", provider: "6ABC", sourceItemId: "ci-420" },
|
||||
category: ["Local"],
|
||||
geo: "philadelphia",
|
||||
eventId: null,
|
||||
sourceCount: 1,
|
||||
sources: [{ itemId: "ci-420", sourceName: "6ABC", link: "https://example.com/6abc/2", publishedAt: hoursAgo(19) }],
|
||||
publishedAt: hoursAgo(19),
|
||||
updatedAt: hoursAgo(19),
|
||||
mergeConfidence: 1.0,
|
||||
tags: [],
|
||||
threadId: "thread-fireworks",
|
||||
previousArticleId: null,
|
||||
nextArticleId: null
|
||||
},
|
||||
{
|
||||
id: "local-4",
|
||||
title: "Road work begins on I-76 overnight lane closures",
|
||||
body: "PennDOT's feed indicates closures will run nightly between 9pm and 5am through the end of the month.",
|
||||
heroImage: { url: img("road-work"), sourceItemId: "ci-430", selectionReason: "Single source" },
|
||||
video: null,
|
||||
category: ["Local"],
|
||||
geo: "philadelphia",
|
||||
eventId: null,
|
||||
sourceCount: 1,
|
||||
sources: [{ itemId: "ci-430", sourceName: "PennDOT feed", link: "https://example.com/penndot/1", publishedAt: hoursAgo(15) }],
|
||||
publishedAt: hoursAgo(15),
|
||||
updatedAt: hoursAgo(15),
|
||||
mergeConfidence: 1.0,
|
||||
tags: [],
|
||||
threadId: "thread-road",
|
||||
previousArticleId: null,
|
||||
nextArticleId: null
|
||||
}
|
||||
];
|
||||
|
||||
const tags = [
|
||||
{ id: "tag-trade-talks", label: "US-EU Trade Talks 2026", slug: "us-eu-trade-talks-2026", articleCount: 2, status: "active" },
|
||||
{ id: "tag-trump", label: "President Trump", slug: "president-trump", articleCount: 1, status: "active" },
|
||||
{ id: "tag-ai-models", label: "Open-source AI models", slug: "open-source-ai-models", articleCount: 1, status: "active" }
|
||||
];
|
||||
|
||||
const events = [
|
||||
{ id: "evt-iran", name: "Iran war", active: true, cadence: "daily" },
|
||||
{ id: "evt-fed", name: "Fed rate decisions", active: true, cadence: "continuous" }
|
||||
];
|
||||
|
||||
module.exports = { articles, tags, events };
|
||||
Generated
+889
@@ -0,0 +1,889 @@
|
||||
{
|
||||
"name": "mock-backend",
|
||||
"version": "1.0.0",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "mock-backend",
|
||||
"version": "1.0.0",
|
||||
"license": "ISC",
|
||||
"dependencies": {
|
||||
"cors": "^2.8.6",
|
||||
"express": "^5.2.1"
|
||||
}
|
||||
},
|
||||
"node_modules/accepts": {
|
||||
"version": "2.0.0",
|
||||
"resolved": "https://registry.npmjs.org/accepts/-/accepts-2.0.0.tgz",
|
||||
"integrity": "sha512-5cvg6CtKwfgdmVqY1WIiXKc3Q1bkRqGLi+2W/6ao+6Y7gu/RCwRuAhGEzh5B4KlszSuTLgZYuqFqo5bImjNKng==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"mime-types": "^3.0.0",
|
||||
"negotiator": "^1.0.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">= 0.6"
|
||||
}
|
||||
},
|
||||
"node_modules/body-parser": {
|
||||
"version": "2.3.0",
|
||||
"resolved": "https://registry.npmjs.org/body-parser/-/body-parser-2.3.0.tgz",
|
||||
"integrity": "sha512-2cGmJupaNgg+QUwVLAucDuWuoMZ6EX9iHDRswZ5lsNYEmwPaRknMPCLZz07yTzVq/83p4o/wzbDZbBrTvGGTIw==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"bytes": "^3.1.2",
|
||||
"content-type": "^2.0.0",
|
||||
"debug": "^4.4.3",
|
||||
"http-errors": "^2.0.1",
|
||||
"iconv-lite": "^0.7.2",
|
||||
"on-finished": "^2.4.1",
|
||||
"qs": "^6.15.2",
|
||||
"raw-body": "^3.0.2",
|
||||
"type-is": "^2.1.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=18"
|
||||
},
|
||||
"funding": {
|
||||
"type": "opencollective",
|
||||
"url": "https://opencollective.com/express"
|
||||
}
|
||||
},
|
||||
"node_modules/body-parser/node_modules/content-type": {
|
||||
"version": "2.0.0",
|
||||
"resolved": "https://registry.npmjs.org/content-type/-/content-type-2.0.0.tgz",
|
||||
"integrity": "sha512-j/O/d7GcZCyNl7/hwZAb606rzqkyvaDctLmckbxLzHvFBzTJHuGEdodATcP3yIRoDrLHkIATJuvzbFlp/ki2cQ==",
|
||||
"license": "MIT",
|
||||
"engines": {
|
||||
"node": ">=18"
|
||||
},
|
||||
"funding": {
|
||||
"type": "opencollective",
|
||||
"url": "https://opencollective.com/express"
|
||||
}
|
||||
},
|
||||
"node_modules/bytes": {
|
||||
"version": "3.1.2",
|
||||
"resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.2.tgz",
|
||||
"integrity": "sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==",
|
||||
"license": "MIT",
|
||||
"engines": {
|
||||
"node": ">= 0.8"
|
||||
}
|
||||
},
|
||||
"node_modules/call-bind-apply-helpers": {
|
||||
"version": "1.0.2",
|
||||
"resolved": "https://registry.npmjs.org/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.2.tgz",
|
||||
"integrity": "sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"es-errors": "^1.3.0",
|
||||
"function-bind": "^1.1.2"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">= 0.4"
|
||||
}
|
||||
},
|
||||
"node_modules/call-bound": {
|
||||
"version": "1.0.4",
|
||||
"resolved": "https://registry.npmjs.org/call-bound/-/call-bound-1.0.4.tgz",
|
||||
"integrity": "sha512-+ys997U96po4Kx/ABpBCqhA9EuxJaQWDQg7295H4hBphv3IZg0boBKuwYpt4YXp6MZ5AmZQnU/tyMTlRpaSejg==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"call-bind-apply-helpers": "^1.0.2",
|
||||
"get-intrinsic": "^1.3.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">= 0.4"
|
||||
},
|
||||
"funding": {
|
||||
"url": "https://github.com/sponsors/ljharb"
|
||||
}
|
||||
},
|
||||
"node_modules/content-disposition": {
|
||||
"version": "1.1.0",
|
||||
"resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-1.1.0.tgz",
|
||||
"integrity": "sha512-5jRCH9Z/+DRP7rkvY83B+yGIGX96OYdJmzngqnw2SBSxqCFPd0w2km3s5iawpGX8krnwSGmF0FW5Nhr0Hfai3g==",
|
||||
"license": "MIT",
|
||||
"engines": {
|
||||
"node": ">=18"
|
||||
},
|
||||
"funding": {
|
||||
"type": "opencollective",
|
||||
"url": "https://opencollective.com/express"
|
||||
}
|
||||
},
|
||||
"node_modules/content-type": {
|
||||
"version": "1.0.5",
|
||||
"resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.5.tgz",
|
||||
"integrity": "sha512-nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA==",
|
||||
"license": "MIT",
|
||||
"engines": {
|
||||
"node": ">= 0.6"
|
||||
}
|
||||
},
|
||||
"node_modules/cookie": {
|
||||
"version": "0.7.2",
|
||||
"resolved": "https://registry.npmjs.org/cookie/-/cookie-0.7.2.tgz",
|
||||
"integrity": "sha512-yki5XnKuf750l50uGTllt6kKILY4nQ1eNIQatoXEByZ5dWgnKqbnqmTrBE5B4N7lrMJKQ2ytWMiTO2o0v6Ew/w==",
|
||||
"license": "MIT",
|
||||
"engines": {
|
||||
"node": ">= 0.6"
|
||||
}
|
||||
},
|
||||
"node_modules/cookie-signature": {
|
||||
"version": "1.2.2",
|
||||
"resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.2.2.tgz",
|
||||
"integrity": "sha512-D76uU73ulSXrD1UXF4KE2TMxVVwhsnCgfAyTg9k8P6KGZjlXKrOLe4dJQKI3Bxi5wjesZoFXJWElNWBjPZMbhg==",
|
||||
"license": "MIT",
|
||||
"engines": {
|
||||
"node": ">=6.6.0"
|
||||
}
|
||||
},
|
||||
"node_modules/cors": {
|
||||
"version": "2.8.6",
|
||||
"resolved": "https://registry.npmjs.org/cors/-/cors-2.8.6.tgz",
|
||||
"integrity": "sha512-tJtZBBHA6vjIAaF6EnIaq6laBBP9aq/Y3ouVJjEfoHbRBcHBAHYcMh/w8LDrk2PvIMMq8gmopa5D4V8RmbrxGw==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"object-assign": "^4",
|
||||
"vary": "^1"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">= 0.10"
|
||||
},
|
||||
"funding": {
|
||||
"type": "opencollective",
|
||||
"url": "https://opencollective.com/express"
|
||||
}
|
||||
},
|
||||
"node_modules/debug": {
|
||||
"version": "4.4.3",
|
||||
"resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz",
|
||||
"integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"ms": "^2.1.3"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=6.0"
|
||||
},
|
||||
"peerDependenciesMeta": {
|
||||
"supports-color": {
|
||||
"optional": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"node_modules/depd": {
|
||||
"version": "2.0.0",
|
||||
"resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz",
|
||||
"integrity": "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==",
|
||||
"license": "MIT",
|
||||
"engines": {
|
||||
"node": ">= 0.8"
|
||||
}
|
||||
},
|
||||
"node_modules/dunder-proto": {
|
||||
"version": "1.0.1",
|
||||
"resolved": "https://registry.npmjs.org/dunder-proto/-/dunder-proto-1.0.1.tgz",
|
||||
"integrity": "sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"call-bind-apply-helpers": "^1.0.1",
|
||||
"es-errors": "^1.3.0",
|
||||
"gopd": "^1.2.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">= 0.4"
|
||||
}
|
||||
},
|
||||
"node_modules/ee-first": {
|
||||
"version": "1.1.1",
|
||||
"resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz",
|
||||
"integrity": "sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==",
|
||||
"license": "MIT"
|
||||
},
|
||||
"node_modules/encodeurl": {
|
||||
"version": "2.0.0",
|
||||
"resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-2.0.0.tgz",
|
||||
"integrity": "sha512-Q0n9HRi4m6JuGIV1eFlmvJB7ZEVxu93IrMyiMsGC0lrMJMWzRgx6WGquyfQgZVb31vhGgXnfmPNNXmxnOkRBrg==",
|
||||
"license": "MIT",
|
||||
"engines": {
|
||||
"node": ">= 0.8"
|
||||
}
|
||||
},
|
||||
"node_modules/es-define-property": {
|
||||
"version": "1.0.1",
|
||||
"resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.1.tgz",
|
||||
"integrity": "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==",
|
||||
"license": "MIT",
|
||||
"engines": {
|
||||
"node": ">= 0.4"
|
||||
}
|
||||
},
|
||||
"node_modules/es-errors": {
|
||||
"version": "1.3.0",
|
||||
"resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz",
|
||||
"integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==",
|
||||
"license": "MIT",
|
||||
"engines": {
|
||||
"node": ">= 0.4"
|
||||
}
|
||||
},
|
||||
"node_modules/es-object-atoms": {
|
||||
"version": "1.1.2",
|
||||
"resolved": "https://registry.npmjs.org/es-object-atoms/-/es-object-atoms-1.1.2.tgz",
|
||||
"integrity": "sha512-HWcBoN6NileqtSydK2FqHbS/LoDd2pqrnQHLyJzBj4kOp/ky2MWMN694xOfkK8/SnUsW2DH7EfyVlydKCsm1Zw==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"es-errors": "^1.3.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">= 0.4"
|
||||
}
|
||||
},
|
||||
"node_modules/escape-html": {
|
||||
"version": "1.0.3",
|
||||
"resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz",
|
||||
"integrity": "sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow==",
|
||||
"license": "MIT"
|
||||
},
|
||||
"node_modules/etag": {
|
||||
"version": "1.8.1",
|
||||
"resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz",
|
||||
"integrity": "sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg==",
|
||||
"license": "MIT",
|
||||
"engines": {
|
||||
"node": ">= 0.6"
|
||||
}
|
||||
},
|
||||
"node_modules/express": {
|
||||
"version": "5.2.1",
|
||||
"resolved": "https://registry.npmjs.org/express/-/express-5.2.1.tgz",
|
||||
"integrity": "sha512-hIS4idWWai69NezIdRt2xFVofaF4j+6INOpJlVOLDO8zXGpUVEVzIYk12UUi2JzjEzWL3IOAxcTubgz9Po0yXw==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"accepts": "^2.0.0",
|
||||
"body-parser": "^2.2.1",
|
||||
"content-disposition": "^1.0.0",
|
||||
"content-type": "^1.0.5",
|
||||
"cookie": "^0.7.1",
|
||||
"cookie-signature": "^1.2.1",
|
||||
"debug": "^4.4.0",
|
||||
"depd": "^2.0.0",
|
||||
"encodeurl": "^2.0.0",
|
||||
"escape-html": "^1.0.3",
|
||||
"etag": "^1.8.1",
|
||||
"finalhandler": "^2.1.0",
|
||||
"fresh": "^2.0.0",
|
||||
"http-errors": "^2.0.0",
|
||||
"merge-descriptors": "^2.0.0",
|
||||
"mime-types": "^3.0.0",
|
||||
"on-finished": "^2.4.1",
|
||||
"once": "^1.4.0",
|
||||
"parseurl": "^1.3.3",
|
||||
"proxy-addr": "^2.0.7",
|
||||
"qs": "^6.14.0",
|
||||
"range-parser": "^1.2.1",
|
||||
"router": "^2.2.0",
|
||||
"send": "^1.1.0",
|
||||
"serve-static": "^2.2.0",
|
||||
"statuses": "^2.0.1",
|
||||
"type-is": "^2.0.1",
|
||||
"vary": "^1.1.2"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">= 18"
|
||||
},
|
||||
"funding": {
|
||||
"type": "opencollective",
|
||||
"url": "https://opencollective.com/express"
|
||||
}
|
||||
},
|
||||
"node_modules/finalhandler": {
|
||||
"version": "2.1.1",
|
||||
"resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-2.1.1.tgz",
|
||||
"integrity": "sha512-S8KoZgRZN+a5rNwqTxlZZePjT/4cnm0ROV70LedRHZ0p8u9fRID0hJUZQpkKLzro8LfmC8sx23bY6tVNxv8pQA==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"debug": "^4.4.0",
|
||||
"encodeurl": "^2.0.0",
|
||||
"escape-html": "^1.0.3",
|
||||
"on-finished": "^2.4.1",
|
||||
"parseurl": "^1.3.3",
|
||||
"statuses": "^2.0.1"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">= 18.0.0"
|
||||
},
|
||||
"funding": {
|
||||
"type": "opencollective",
|
||||
"url": "https://opencollective.com/express"
|
||||
}
|
||||
},
|
||||
"node_modules/forwarded": {
|
||||
"version": "0.2.0",
|
||||
"resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.2.0.tgz",
|
||||
"integrity": "sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow==",
|
||||
"license": "MIT",
|
||||
"engines": {
|
||||
"node": ">= 0.6"
|
||||
}
|
||||
},
|
||||
"node_modules/fresh": {
|
||||
"version": "2.0.0",
|
||||
"resolved": "https://registry.npmjs.org/fresh/-/fresh-2.0.0.tgz",
|
||||
"integrity": "sha512-Rx/WycZ60HOaqLKAi6cHRKKI7zxWbJ31MhntmtwMoaTeF7XFH9hhBp8vITaMidfljRQ6eYWCKkaTK+ykVJHP2A==",
|
||||
"license": "MIT",
|
||||
"engines": {
|
||||
"node": ">= 0.8"
|
||||
}
|
||||
},
|
||||
"node_modules/function-bind": {
|
||||
"version": "1.1.2",
|
||||
"resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz",
|
||||
"integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==",
|
||||
"license": "MIT",
|
||||
"funding": {
|
||||
"url": "https://github.com/sponsors/ljharb"
|
||||
}
|
||||
},
|
||||
"node_modules/get-intrinsic": {
|
||||
"version": "1.3.0",
|
||||
"resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.3.0.tgz",
|
||||
"integrity": "sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"call-bind-apply-helpers": "^1.0.2",
|
||||
"es-define-property": "^1.0.1",
|
||||
"es-errors": "^1.3.0",
|
||||
"es-object-atoms": "^1.1.1",
|
||||
"function-bind": "^1.1.2",
|
||||
"get-proto": "^1.0.1",
|
||||
"gopd": "^1.2.0",
|
||||
"has-symbols": "^1.1.0",
|
||||
"hasown": "^2.0.2",
|
||||
"math-intrinsics": "^1.1.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">= 0.4"
|
||||
},
|
||||
"funding": {
|
||||
"url": "https://github.com/sponsors/ljharb"
|
||||
}
|
||||
},
|
||||
"node_modules/get-proto": {
|
||||
"version": "1.0.1",
|
||||
"resolved": "https://registry.npmjs.org/get-proto/-/get-proto-1.0.1.tgz",
|
||||
"integrity": "sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"dunder-proto": "^1.0.1",
|
||||
"es-object-atoms": "^1.0.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">= 0.4"
|
||||
}
|
||||
},
|
||||
"node_modules/gopd": {
|
||||
"version": "1.2.0",
|
||||
"resolved": "https://registry.npmjs.org/gopd/-/gopd-1.2.0.tgz",
|
||||
"integrity": "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==",
|
||||
"license": "MIT",
|
||||
"engines": {
|
||||
"node": ">= 0.4"
|
||||
},
|
||||
"funding": {
|
||||
"url": "https://github.com/sponsors/ljharb"
|
||||
}
|
||||
},
|
||||
"node_modules/has-symbols": {
|
||||
"version": "1.1.0",
|
||||
"resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.1.0.tgz",
|
||||
"integrity": "sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==",
|
||||
"license": "MIT",
|
||||
"engines": {
|
||||
"node": ">= 0.4"
|
||||
},
|
||||
"funding": {
|
||||
"url": "https://github.com/sponsors/ljharb"
|
||||
}
|
||||
},
|
||||
"node_modules/hasown": {
|
||||
"version": "2.0.4",
|
||||
"resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.4.tgz",
|
||||
"integrity": "sha512-T2UbfbBEF32wiepXIsMlTW9+dDYC6wMh/t/vYA4tuOMKqWz/n3vr1NFSxQiyP+zk2mXsoMA/i/7qV6LKut1t1A==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"function-bind": "^1.1.2"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">= 0.4"
|
||||
}
|
||||
},
|
||||
"node_modules/http-errors": {
|
||||
"version": "2.0.1",
|
||||
"resolved": "https://registry.npmjs.org/http-errors/-/http-errors-2.0.1.tgz",
|
||||
"integrity": "sha512-4FbRdAX+bSdmo4AUFuS0WNiPz8NgFt+r8ThgNWmlrjQjt1Q7ZR9+zTlce2859x4KSXrwIsaeTqDoKQmtP8pLmQ==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"depd": "~2.0.0",
|
||||
"inherits": "~2.0.4",
|
||||
"setprototypeof": "~1.2.0",
|
||||
"statuses": "~2.0.2",
|
||||
"toidentifier": "~1.0.1"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">= 0.8"
|
||||
},
|
||||
"funding": {
|
||||
"type": "opencollective",
|
||||
"url": "https://opencollective.com/express"
|
||||
}
|
||||
},
|
||||
"node_modules/iconv-lite": {
|
||||
"version": "0.7.3",
|
||||
"resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.7.3.tgz",
|
||||
"integrity": "sha512-IKXpvIzjnC9XTAUbVBcMfGS0EPaIXtW6v+zr+RRp+hqULEpo0owZax6wyRwPOJbWbzjYspQwusTsfVr0ifh4uQ==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"safer-buffer": ">= 2.1.2 < 3.0.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=0.10.0"
|
||||
},
|
||||
"funding": {
|
||||
"type": "opencollective",
|
||||
"url": "https://opencollective.com/express"
|
||||
}
|
||||
},
|
||||
"node_modules/inherits": {
|
||||
"version": "2.0.4",
|
||||
"resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz",
|
||||
"integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==",
|
||||
"license": "ISC"
|
||||
},
|
||||
"node_modules/ipaddr.js": {
|
||||
"version": "1.9.1",
|
||||
"resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.1.tgz",
|
||||
"integrity": "sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==",
|
||||
"license": "MIT",
|
||||
"engines": {
|
||||
"node": ">= 0.10"
|
||||
}
|
||||
},
|
||||
"node_modules/is-promise": {
|
||||
"version": "4.0.0",
|
||||
"resolved": "https://registry.npmjs.org/is-promise/-/is-promise-4.0.0.tgz",
|
||||
"integrity": "sha512-hvpoI6korhJMnej285dSg6nu1+e6uxs7zG3BYAm5byqDsgJNWwxzM6z6iZiAgQR4TJ30JmBTOwqZUw3WlyH3AQ==",
|
||||
"license": "MIT"
|
||||
},
|
||||
"node_modules/math-intrinsics": {
|
||||
"version": "1.1.0",
|
||||
"resolved": "https://registry.npmjs.org/math-intrinsics/-/math-intrinsics-1.1.0.tgz",
|
||||
"integrity": "sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==",
|
||||
"license": "MIT",
|
||||
"engines": {
|
||||
"node": ">= 0.4"
|
||||
}
|
||||
},
|
||||
"node_modules/media-typer": {
|
||||
"version": "1.1.0",
|
||||
"resolved": "https://registry.npmjs.org/media-typer/-/media-typer-1.1.0.tgz",
|
||||
"integrity": "sha512-aisnrDP4GNe06UcKFnV5bfMNPBUw4jsLGaWwWfnH3v02GnBuXX2MCVn5RbrWo0j3pczUilYblq7fQ7Nw2t5XKw==",
|
||||
"license": "MIT",
|
||||
"engines": {
|
||||
"node": ">= 0.8"
|
||||
}
|
||||
},
|
||||
"node_modules/merge-descriptors": {
|
||||
"version": "2.0.0",
|
||||
"resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-2.0.0.tgz",
|
||||
"integrity": "sha512-Snk314V5ayFLhp3fkUREub6WtjBfPdCPY1Ln8/8munuLuiYhsABgBVWsozAG+MWMbVEvcdcpbi9R7ww22l9Q3g==",
|
||||
"license": "MIT",
|
||||
"engines": {
|
||||
"node": ">=18"
|
||||
},
|
||||
"funding": {
|
||||
"url": "https://github.com/sponsors/sindresorhus"
|
||||
}
|
||||
},
|
||||
"node_modules/mime-db": {
|
||||
"version": "1.54.0",
|
||||
"resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.54.0.tgz",
|
||||
"integrity": "sha512-aU5EJuIN2WDemCcAp2vFBfp/m4EAhWJnUNSSw0ixs7/kXbd6Pg64EmwJkNdFhB8aWt1sH2CTXrLxo/iAGV3oPQ==",
|
||||
"license": "MIT",
|
||||
"engines": {
|
||||
"node": ">= 0.6"
|
||||
}
|
||||
},
|
||||
"node_modules/mime-types": {
|
||||
"version": "3.0.2",
|
||||
"resolved": "https://registry.npmjs.org/mime-types/-/mime-types-3.0.2.tgz",
|
||||
"integrity": "sha512-Lbgzdk0h4juoQ9fCKXW4by0UJqj+nOOrI9MJ1sSj4nI8aI2eo1qmvQEie4VD1glsS250n15LsWsYtCugiStS5A==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"mime-db": "^1.54.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=18"
|
||||
},
|
||||
"funding": {
|
||||
"type": "opencollective",
|
||||
"url": "https://opencollective.com/express"
|
||||
}
|
||||
},
|
||||
"node_modules/ms": {
|
||||
"version": "2.1.3",
|
||||
"resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz",
|
||||
"integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==",
|
||||
"license": "MIT"
|
||||
},
|
||||
"node_modules/negotiator": {
|
||||
"version": "1.0.0",
|
||||
"resolved": "https://registry.npmjs.org/negotiator/-/negotiator-1.0.0.tgz",
|
||||
"integrity": "sha512-8Ofs/AUQh8MaEcrlq5xOX0CQ9ypTF5dl78mjlMNfOK08fzpgTHQRQPBxcPlEtIw0yRpws+Zo/3r+5WRby7u3Gg==",
|
||||
"license": "MIT",
|
||||
"engines": {
|
||||
"node": ">= 0.6"
|
||||
}
|
||||
},
|
||||
"node_modules/object-assign": {
|
||||
"version": "4.1.1",
|
||||
"resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz",
|
||||
"integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==",
|
||||
"license": "MIT",
|
||||
"engines": {
|
||||
"node": ">=0.10.0"
|
||||
}
|
||||
},
|
||||
"node_modules/object-inspect": {
|
||||
"version": "1.13.4",
|
||||
"resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.4.tgz",
|
||||
"integrity": "sha512-W67iLl4J2EXEGTbfeHCffrjDfitvLANg0UlX3wFUUSTx92KXRFegMHUVgSqE+wvhAbi4WqjGg9czysTV2Epbew==",
|
||||
"license": "MIT",
|
||||
"engines": {
|
||||
"node": ">= 0.4"
|
||||
},
|
||||
"funding": {
|
||||
"url": "https://github.com/sponsors/ljharb"
|
||||
}
|
||||
},
|
||||
"node_modules/on-finished": {
|
||||
"version": "2.4.1",
|
||||
"resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.4.1.tgz",
|
||||
"integrity": "sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"ee-first": "1.1.1"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">= 0.8"
|
||||
}
|
||||
},
|
||||
"node_modules/once": {
|
||||
"version": "1.4.0",
|
||||
"resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz",
|
||||
"integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==",
|
||||
"license": "ISC",
|
||||
"dependencies": {
|
||||
"wrappy": "1"
|
||||
}
|
||||
},
|
||||
"node_modules/parseurl": {
|
||||
"version": "1.3.3",
|
||||
"resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz",
|
||||
"integrity": "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==",
|
||||
"license": "MIT",
|
||||
"engines": {
|
||||
"node": ">= 0.8"
|
||||
}
|
||||
},
|
||||
"node_modules/path-to-regexp": {
|
||||
"version": "8.4.2",
|
||||
"resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-8.4.2.tgz",
|
||||
"integrity": "sha512-qRcuIdP69NPm4qbACK+aDogI5CBDMi1jKe0ry5rSQJz8JVLsC7jV8XpiJjGRLLol3N+R5ihGYcrPLTno6pAdBA==",
|
||||
"license": "MIT",
|
||||
"funding": {
|
||||
"type": "opencollective",
|
||||
"url": "https://opencollective.com/express"
|
||||
}
|
||||
},
|
||||
"node_modules/proxy-addr": {
|
||||
"version": "2.0.7",
|
||||
"resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.7.tgz",
|
||||
"integrity": "sha512-llQsMLSUDUPT44jdrU/O37qlnifitDP+ZwrmmZcoSKyLKvtZxpyV0n2/bD/N4tBAAZ/gJEdZU7KMraoK1+XYAg==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"forwarded": "0.2.0",
|
||||
"ipaddr.js": "1.9.1"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">= 0.10"
|
||||
}
|
||||
},
|
||||
"node_modules/qs": {
|
||||
"version": "6.15.3",
|
||||
"resolved": "https://registry.npmjs.org/qs/-/qs-6.15.3.tgz",
|
||||
"integrity": "sha512-O9gl3zCl5h5blw1KGUzQKhA5oUXSl8rwUIM5o0S3nCXMliSvy5Dzx7/DJcI+SwgICv+IneSZwhBh1oSyEHA71A==",
|
||||
"license": "BSD-3-Clause",
|
||||
"dependencies": {
|
||||
"es-define-property": "^1.0.1",
|
||||
"side-channel": "^1.1.1"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=0.6"
|
||||
},
|
||||
"funding": {
|
||||
"url": "https://github.com/sponsors/ljharb"
|
||||
}
|
||||
},
|
||||
"node_modules/range-parser": {
|
||||
"version": "1.3.0",
|
||||
"resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.3.0.tgz",
|
||||
"integrity": "sha512-hek2mFQpPuI4E1BBKrSto+BU3e3x4xuarsbiwr3+lf7p44juvFMV0XFWQAP3xUyqXA4RrXLIoaSUGbSt056ZMw==",
|
||||
"license": "MIT",
|
||||
"engines": {
|
||||
"node": ">= 0.6"
|
||||
},
|
||||
"funding": {
|
||||
"type": "opencollective",
|
||||
"url": "https://opencollective.com/express"
|
||||
}
|
||||
},
|
||||
"node_modules/raw-body": {
|
||||
"version": "3.0.2",
|
||||
"resolved": "https://registry.npmjs.org/raw-body/-/raw-body-3.0.2.tgz",
|
||||
"integrity": "sha512-K5zQjDllxWkf7Z5xJdV0/B0WTNqx6vxG70zJE4N0kBs4LovmEYWJzQGxC9bS9RAKu3bgM40lrd5zoLJ12MQ5BA==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"bytes": "~3.1.2",
|
||||
"http-errors": "~2.0.1",
|
||||
"iconv-lite": "~0.7.0",
|
||||
"unpipe": "~1.0.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">= 0.10"
|
||||
}
|
||||
},
|
||||
"node_modules/router": {
|
||||
"version": "2.2.0",
|
||||
"resolved": "https://registry.npmjs.org/router/-/router-2.2.0.tgz",
|
||||
"integrity": "sha512-nLTrUKm2UyiL7rlhapu/Zl45FwNgkZGaCpZbIHajDYgwlJCOzLSk+cIPAnsEqV955GjILJnKbdQC1nVPz+gAYQ==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"debug": "^4.4.0",
|
||||
"depd": "^2.0.0",
|
||||
"is-promise": "^4.0.0",
|
||||
"parseurl": "^1.3.3",
|
||||
"path-to-regexp": "^8.0.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">= 18"
|
||||
}
|
||||
},
|
||||
"node_modules/safer-buffer": {
|
||||
"version": "2.1.2",
|
||||
"resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz",
|
||||
"integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==",
|
||||
"license": "MIT"
|
||||
},
|
||||
"node_modules/send": {
|
||||
"version": "1.2.1",
|
||||
"resolved": "https://registry.npmjs.org/send/-/send-1.2.1.tgz",
|
||||
"integrity": "sha512-1gnZf7DFcoIcajTjTwjwuDjzuz4PPcY2StKPlsGAQ1+YH20IRVrBaXSWmdjowTJ6u8Rc01PoYOGHXfP1mYcZNQ==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"debug": "^4.4.3",
|
||||
"encodeurl": "^2.0.0",
|
||||
"escape-html": "^1.0.3",
|
||||
"etag": "^1.8.1",
|
||||
"fresh": "^2.0.0",
|
||||
"http-errors": "^2.0.1",
|
||||
"mime-types": "^3.0.2",
|
||||
"ms": "^2.1.3",
|
||||
"on-finished": "^2.4.1",
|
||||
"range-parser": "^1.2.1",
|
||||
"statuses": "^2.0.2"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">= 18"
|
||||
},
|
||||
"funding": {
|
||||
"type": "opencollective",
|
||||
"url": "https://opencollective.com/express"
|
||||
}
|
||||
},
|
||||
"node_modules/serve-static": {
|
||||
"version": "2.2.1",
|
||||
"resolved": "https://registry.npmjs.org/serve-static/-/serve-static-2.2.1.tgz",
|
||||
"integrity": "sha512-xRXBn0pPqQTVQiC8wyQrKs2MOlX24zQ0POGaj0kultvoOCstBQM5yvOhAVSUwOMjQtTvsPWoNCHfPGwaaQJhTw==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"encodeurl": "^2.0.0",
|
||||
"escape-html": "^1.0.3",
|
||||
"parseurl": "^1.3.3",
|
||||
"send": "^1.2.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">= 18"
|
||||
},
|
||||
"funding": {
|
||||
"type": "opencollective",
|
||||
"url": "https://opencollective.com/express"
|
||||
}
|
||||
},
|
||||
"node_modules/setprototypeof": {
|
||||
"version": "1.2.0",
|
||||
"resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.2.0.tgz",
|
||||
"integrity": "sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==",
|
||||
"license": "ISC"
|
||||
},
|
||||
"node_modules/side-channel": {
|
||||
"version": "1.1.1",
|
||||
"resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.1.1.tgz",
|
||||
"integrity": "sha512-6x6dK6zJdpTzF4sQeNYxwtvBzf6Eg4GtlesS94HOvTudUeyK2WXAaIfmDgsyslYrRBeFIlsi54AYsFGUuhmvrQ==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"es-errors": "^1.3.0",
|
||||
"object-inspect": "^1.13.4",
|
||||
"side-channel-list": "^1.0.1",
|
||||
"side-channel-map": "^1.0.1",
|
||||
"side-channel-weakmap": "^1.0.2"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">= 0.4"
|
||||
},
|
||||
"funding": {
|
||||
"url": "https://github.com/sponsors/ljharb"
|
||||
}
|
||||
},
|
||||
"node_modules/side-channel-list": {
|
||||
"version": "1.0.1",
|
||||
"resolved": "https://registry.npmjs.org/side-channel-list/-/side-channel-list-1.0.1.tgz",
|
||||
"integrity": "sha512-mjn/0bi/oUURjc5Xl7IaWi/OJJJumuoJFQJfDDyO46+hBWsfaVM65TBHq2eoZBhzl9EchxOijpkbRC8SVBQU0w==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"es-errors": "^1.3.0",
|
||||
"object-inspect": "^1.13.4"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">= 0.4"
|
||||
},
|
||||
"funding": {
|
||||
"url": "https://github.com/sponsors/ljharb"
|
||||
}
|
||||
},
|
||||
"node_modules/side-channel-map": {
|
||||
"version": "1.0.1",
|
||||
"resolved": "https://registry.npmjs.org/side-channel-map/-/side-channel-map-1.0.1.tgz",
|
||||
"integrity": "sha512-VCjCNfgMsby3tTdo02nbjtM/ewra6jPHmpThenkTYh8pG9ucZ/1P8So4u4FGBek/BjpOVsDCMoLA/iuBKIFXRA==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"call-bound": "^1.0.2",
|
||||
"es-errors": "^1.3.0",
|
||||
"get-intrinsic": "^1.2.5",
|
||||
"object-inspect": "^1.13.3"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">= 0.4"
|
||||
},
|
||||
"funding": {
|
||||
"url": "https://github.com/sponsors/ljharb"
|
||||
}
|
||||
},
|
||||
"node_modules/side-channel-weakmap": {
|
||||
"version": "1.0.2",
|
||||
"resolved": "https://registry.npmjs.org/side-channel-weakmap/-/side-channel-weakmap-1.0.2.tgz",
|
||||
"integrity": "sha512-WPS/HvHQTYnHisLo9McqBHOJk2FkHO/tlpvldyrnem4aeQp4hai3gythswg6p01oSoTl58rcpiFAjF2br2Ak2A==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"call-bound": "^1.0.2",
|
||||
"es-errors": "^1.3.0",
|
||||
"get-intrinsic": "^1.2.5",
|
||||
"object-inspect": "^1.13.3",
|
||||
"side-channel-map": "^1.0.1"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">= 0.4"
|
||||
},
|
||||
"funding": {
|
||||
"url": "https://github.com/sponsors/ljharb"
|
||||
}
|
||||
},
|
||||
"node_modules/statuses": {
|
||||
"version": "2.0.2",
|
||||
"resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.2.tgz",
|
||||
"integrity": "sha512-DvEy55V3DB7uknRo+4iOGT5fP1slR8wQohVdknigZPMpMstaKJQWhwiYBACJE3Ul2pTnATihhBYnRhZQHGBiRw==",
|
||||
"license": "MIT",
|
||||
"engines": {
|
||||
"node": ">= 0.8"
|
||||
}
|
||||
},
|
||||
"node_modules/toidentifier": {
|
||||
"version": "1.0.1",
|
||||
"resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.1.tgz",
|
||||
"integrity": "sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==",
|
||||
"license": "MIT",
|
||||
"engines": {
|
||||
"node": ">=0.6"
|
||||
}
|
||||
},
|
||||
"node_modules/type-is": {
|
||||
"version": "2.1.0",
|
||||
"resolved": "https://registry.npmjs.org/type-is/-/type-is-2.1.0.tgz",
|
||||
"integrity": "sha512-faYHw0anBbc/kWF3zFTEnxSFOAGUX9GFbOBthvDdLsIlEoWOFOtS0zgCiQYwIskL9iGXZL3kAXD8OoZ4GmMATA==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"content-type": "^2.0.0",
|
||||
"media-typer": "^1.1.0",
|
||||
"mime-types": "^3.0.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">= 18"
|
||||
},
|
||||
"funding": {
|
||||
"type": "opencollective",
|
||||
"url": "https://opencollective.com/express"
|
||||
}
|
||||
},
|
||||
"node_modules/type-is/node_modules/content-type": {
|
||||
"version": "2.0.0",
|
||||
"resolved": "https://registry.npmjs.org/content-type/-/content-type-2.0.0.tgz",
|
||||
"integrity": "sha512-j/O/d7GcZCyNl7/hwZAb606rzqkyvaDctLmckbxLzHvFBzTJHuGEdodATcP3yIRoDrLHkIATJuvzbFlp/ki2cQ==",
|
||||
"license": "MIT",
|
||||
"engines": {
|
||||
"node": ">=18"
|
||||
},
|
||||
"funding": {
|
||||
"type": "opencollective",
|
||||
"url": "https://opencollective.com/express"
|
||||
}
|
||||
},
|
||||
"node_modules/unpipe": {
|
||||
"version": "1.0.0",
|
||||
"resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz",
|
||||
"integrity": "sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ==",
|
||||
"license": "MIT",
|
||||
"engines": {
|
||||
"node": ">= 0.8"
|
||||
}
|
||||
},
|
||||
"node_modules/vary": {
|
||||
"version": "1.1.2",
|
||||
"resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz",
|
||||
"integrity": "sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==",
|
||||
"license": "MIT",
|
||||
"engines": {
|
||||
"node": ">= 0.8"
|
||||
}
|
||||
},
|
||||
"node_modules/wrappy": {
|
||||
"version": "1.0.2",
|
||||
"resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz",
|
||||
"integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==",
|
||||
"license": "ISC"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
{
|
||||
"name": "mock-backend",
|
||||
"version": "1.0.0",
|
||||
"description": "",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
"start": "node server.js",
|
||||
"test": "echo \"Error: no test specified\" && exit 1"
|
||||
},
|
||||
"keywords": [],
|
||||
"author": "",
|
||||
"license": "ISC",
|
||||
"dependencies": {
|
||||
"cors": "^2.8.6",
|
||||
"express": "^5.2.1"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,121 @@
|
||||
// Mock backend — implements the public API surface from homefeed-data-schema.md
|
||||
// so the frontend can be built and tested before the real backend exists.
|
||||
// GET /api/feed?category=&geo=&eventId=&tag=
|
||||
// GET /api/article/:id
|
||||
// GET /api/events
|
||||
// GET /api/tags
|
||||
|
||||
const express = require("express");
|
||||
const cors = require("cors");
|
||||
const { articles, tags, events } = require("./data");
|
||||
const admin = require("./admin-data");
|
||||
|
||||
const app = express();
|
||||
app.use(cors());
|
||||
app.use(express.json());
|
||||
|
||||
const PORT = process.env.PORT || 4000;
|
||||
|
||||
app.get("/api/feed", (req, res) => {
|
||||
const { category, geo, eventId, tag } = req.query;
|
||||
let results = articles;
|
||||
|
||||
if (category) {
|
||||
results = results.filter((a) => a.category.some((c) => c.toLowerCase() === String(category).toLowerCase()));
|
||||
}
|
||||
if (geo) {
|
||||
results = results.filter((a) => a.geo === geo);
|
||||
}
|
||||
if (eventId) {
|
||||
results = results.filter((a) => a.eventId === eventId);
|
||||
}
|
||||
if (tag) {
|
||||
results = results.filter((a) => a.tags.includes(tag));
|
||||
}
|
||||
|
||||
results = [...results].sort((a, b) => new Date(b.publishedAt) - new Date(a.publishedAt));
|
||||
res.json(results);
|
||||
});
|
||||
|
||||
app.get("/api/article/:id", (req, res) => {
|
||||
const article = articles.find((a) => a.id === req.params.id);
|
||||
if (!article) return res.status(404).json({ error: "not found" });
|
||||
res.json(article);
|
||||
});
|
||||
|
||||
app.get("/api/tags", (req, res) => {
|
||||
res.json(tags.filter((t) => t.status === "active"));
|
||||
});
|
||||
|
||||
app.get("/api/events", (req, res) => {
|
||||
res.json(events);
|
||||
});
|
||||
|
||||
// --- Admin API ---
|
||||
// No auth in the mock — the real backend enforces session auth on all /api/admin/* routes.
|
||||
|
||||
app.get("/api/admin/settings", (req, res) => {
|
||||
res.json(admin.getSettings());
|
||||
});
|
||||
|
||||
app.patch("/api/admin/settings", (req, res) => {
|
||||
res.json(admin.updateSettings(req.body));
|
||||
});
|
||||
|
||||
app.get("/api/admin/sources", (req, res) => {
|
||||
res.json(admin.getSources());
|
||||
});
|
||||
|
||||
app.post("/api/admin/sources", (req, res) => {
|
||||
res.status(201).json(admin.addSource(req.body));
|
||||
});
|
||||
|
||||
app.patch("/api/admin/sources/:id", (req, res) => {
|
||||
const updated = admin.updateSource(req.params.id, req.body);
|
||||
if (!updated) return res.status(404).json({ error: "not found" });
|
||||
res.json(updated);
|
||||
});
|
||||
|
||||
app.delete("/api/admin/sources/:id", (req, res) => {
|
||||
admin.deleteSource(req.params.id);
|
||||
res.status(204).end();
|
||||
});
|
||||
|
||||
app.get("/api/admin/events", (req, res) => {
|
||||
res.json(admin.getEvents());
|
||||
});
|
||||
|
||||
app.post("/api/admin/events", (req, res) => {
|
||||
res.status(201).json(admin.addEvent(req.body));
|
||||
});
|
||||
|
||||
app.patch("/api/admin/events/:id", (req, res) => {
|
||||
const updated = admin.updateEvent(req.params.id, req.body);
|
||||
if (!updated) return res.status(404).json({ error: "not found" });
|
||||
res.json(updated);
|
||||
});
|
||||
|
||||
app.delete("/api/admin/events/:id", (req, res) => {
|
||||
admin.deleteEvent(req.params.id);
|
||||
res.status(204).end();
|
||||
});
|
||||
|
||||
app.get("/api/admin/models", (req, res) => {
|
||||
res.json(admin.getModels());
|
||||
});
|
||||
|
||||
app.get("/api/admin/ai-status", (req, res) => {
|
||||
// Simulates pinging the configured Ollama host
|
||||
const { aiServiceHost, aiServicePort } = admin.getSettings();
|
||||
res.json({
|
||||
connected: true,
|
||||
host: aiServiceHost,
|
||||
port: aiServicePort,
|
||||
ramGB: 48,
|
||||
gpu: "none reported"
|
||||
});
|
||||
});
|
||||
|
||||
app.listen(PORT, () => {
|
||||
console.log(`Mock backend running at http://localhost:${PORT}`);
|
||||
});
|
||||
Reference in New Issue
Block a user