lynkr 9.4.1 → 9.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/dashboard/router.js +10 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "lynkr",
|
|
3
|
-
"version": "9.4.
|
|
3
|
+
"version": "9.4.2",
|
|
4
4
|
"description": "Self-hosted LLM gateway and tier-routing proxy for Claude Code, Cursor, and Codex. Routes across Ollama, AWS Bedrock, OpenRouter, Databricks, Azure OpenAI, llama.cpp, and LM Studio with prompt caching, MCP tools, and 60-80% cost savings.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"bin": {
|
package/src/dashboard/router.js
CHANGED
|
@@ -1,10 +1,19 @@
|
|
|
1
1
|
const express = require('express');
|
|
2
2
|
const path = require('path');
|
|
3
|
+
const fs = require('fs');
|
|
3
4
|
const api = require('./api');
|
|
4
5
|
|
|
5
6
|
const router = express.Router();
|
|
6
7
|
|
|
7
|
-
|
|
8
|
+
const DASHBOARD_HTML = path.resolve(__dirname, '../../public/dashboard.html');
|
|
9
|
+
|
|
10
|
+
router.get(['/', ''], (_req, res) => {
|
|
11
|
+
if (!fs.existsSync(DASHBOARD_HTML)) {
|
|
12
|
+
return res.status(500).json({ error: 'dashboard_unavailable', path: DASHBOARD_HTML });
|
|
13
|
+
}
|
|
14
|
+
res.sendFile(DASHBOARD_HTML);
|
|
15
|
+
});
|
|
16
|
+
|
|
8
17
|
router.get('/api/overview', api.overview);
|
|
9
18
|
router.get('/api/usage', api.usage);
|
|
10
19
|
router.get('/api/routing', api.routing);
|