10 lines
332 B
TypeScript
10 lines
332 B
TypeScript
import { loadProviderUsageSummary } from "../../infra/provider-usage.js";
|
|
import type { GatewayRequestHandlers } from "./types.js";
|
|
|
|
export const usageHandlers: GatewayRequestHandlers = {
|
|
"usage.status": async ({ respond }) => {
|
|
const summary = await loadProviderUsageSummary();
|
|
respond(true, summary, undefined);
|
|
},
|
|
};
|