Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
sagemathinc
GitHub Repository: sagemathinc/cocalc
Path: blob/master/src/packages/next/pages/api/v2/purchases/get-max-project-quotas.ts
1454 views
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