lynkr 9.4.3 → 9.4.4
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/server.js +9 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "lynkr",
|
|
3
|
-
"version": "9.4.
|
|
3
|
+
"version": "9.4.4",
|
|
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/server.js
CHANGED
|
@@ -67,6 +67,15 @@ if (LAZY_TOOLS_ENABLED) {
|
|
|
67
67
|
|
|
68
68
|
function createApp() {
|
|
69
69
|
const app = express();
|
|
70
|
+
const path = require('path');
|
|
71
|
+
|
|
72
|
+
// Dashboard — registered first so it is never shadowed by the main router
|
|
73
|
+
const DASHBOARD_HTML = path.resolve(__dirname, '../public/dashboard.html');
|
|
74
|
+
app.get('/dashboard', (_req, res) => res.sendFile(DASHBOARD_HTML));
|
|
75
|
+
app.get('/dashboard/api/overview', require('./dashboard/api').overview);
|
|
76
|
+
app.get('/dashboard/api/usage', require('./dashboard/api').usage);
|
|
77
|
+
app.get('/dashboard/api/routing', require('./dashboard/api').routing);
|
|
78
|
+
app.get('/dashboard/api/logs', require('./dashboard/api').logs);
|
|
70
79
|
|
|
71
80
|
// Initialize load shedder (log configuration)
|
|
72
81
|
initializeLoadShedder();
|