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-prices-project-quotas.ts
Views: 687
1
/*
2
Get the configured prices for pay-as-you-go project upgrades.
3
*/
4
5
import { getPrices } from "@cocalc/server/purchases/project-quotas";
6
7
export default async function handle(_req, res) {
8
try {
9
res.json(await getPrices());
10
} catch (err) {
11
res.json({ error: `${err.message}` });
12
return;
13
}
14
}
15
16