Expose enterprise video pricing config
This commit is contained in:
@@ -1,11 +1,16 @@
|
||||
const { keyManager, listModelPrices, pool } = require("./context");
|
||||
const { getEnterpriseVideoPricingConfig } = require("../enterpriseVideoBilling");
|
||||
|
||||
function registerPriceRoutes(router) {
|
||||
// ── Public ───────────────────────────────────────────────────────────
|
||||
|
||||
router.get("/prices", async (_req, res) => {
|
||||
const prices = await listModelPrices({ enabledOnly: true });
|
||||
res.json(prices);
|
||||
res.json({
|
||||
prices,
|
||||
modelPrices: prices,
|
||||
enterpriseVideoPricing: getEnterpriseVideoPricingConfig(),
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user