@fudrouter/fsrouter 0.6.97 → 0.6.99
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.
|
@@ -470,7 +470,7 @@ export async function POST_handler(req, res) {
|
|
|
470
470
|
return res.json({ deleted: deletedCount });
|
|
471
471
|
}
|
|
472
472
|
// ── Action: Bulk add ready accounts to 9router ─────────────────
|
|
473
|
-
if (action === "bulk-add-to-9router") {
|
|
473
|
+
if (action === "bulk-add-to-9router" || action === "bulk-add-to-fsrouter") {
|
|
474
474
|
const { provider } = body;
|
|
475
475
|
const accounts = await listCodeBuddyAccounts();
|
|
476
476
|
const ready = accounts.filter(a => {
|
package/dist/server.js
CHANGED
|
@@ -35,8 +35,9 @@ SPA_ROUTES.forEach((route) => {
|
|
|
35
35
|
});
|
|
36
36
|
});
|
|
37
37
|
// ─── Health Check (no auth) ────────────────────────────────────────────────────
|
|
38
|
+
import { getAppVersion } from "./lib/db/version.js";
|
|
38
39
|
app.get("/api/health", (_req, res) => {
|
|
39
|
-
res.json({ status: "ok", version:
|
|
40
|
+
res.json({ status: "ok", version: getAppVersion(), ts: Date.now() });
|
|
40
41
|
});
|
|
41
42
|
// ─── Auth Middleware ───────────────────────────────────────────────────────────
|
|
42
43
|
app.use(authMiddleware);
|