mirror of
https://github.com/hanzoai/chat.git
synced 2026-09-30 20:51:17 +00:00
Adds the shared Hanzo usage read to LibreChat's Usage tab, beside (not
replacing) the Mongo token-credit view. Backend CloudUsage.js proxies
cloud's GET /v1/get-cloud-usages on-behalf-of (hanzo.id bearer resolved
server-side, never to browser); client renders the CloudUsageOverview
with @hanzo/usage's headless normalizeCloudUsage over native Tailwind.
Honest when unavailable: 200 {enabled:false} hides the section.
9 lines
252 B
JavaScript
9 lines
252 B
JavaScript
const express = require('express');
|
|
const router = express.Router();
|
|
const controller = require('../controllers/CloudUsage');
|
|
const { requireJwtAuth } = require('../middleware/');
|
|
|
|
router.get('/', requireJwtAuth, controller);
|
|
|
|
module.exports = router;
|