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/lib/project/info.ts
Views: 687
1
/*
2
* This file is part of CoCalc: Copyright © 2020 Sagemath, Inc.
3
* License: MS-RSL – see LICENSE.md for details
4
*/
5
6
import getCollaborators from "lib/share/get-collaborators";
7
import getPublicPaths from "lib/share/get-public-paths";
8
9
export default async function getProjectInfo(project_id: string, req) {
10
return {
11
publicPaths: await getPublicPaths(project_id, req),
12
collaborators: await getCollaborators(project_id),
13
};
14
}
15
16