CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
sagemathinc

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.

GitHub Repository: sagemathinc/cocalc
Path: blob/master/src/packages/next/pages/api/v2/purchases/get-max-project-quotas.ts
Views: 687
1
/*
2
Get the configured maximum allowed pay-as-you-go project upgrades.
3
*/
4
5
import { getMaxQuotas } from "@cocalc/server/purchases/project-quotas";
6
7
export default async function handle(_req, res) {
8
try {
9
res.json(await getMaxQuotas());
10
} catch (err) {
11
res.json({ error: `${err.message}` });
12
return;
13
}
14
}
15
16