streamby-core 0.7.0 → 0.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -105,7 +105,7 @@ function createStreamByRouter(config) {
|
|
|
105
105
|
res.status(404).json({ error: 'Project not found', details: err });
|
|
106
106
|
}
|
|
107
107
|
});
|
|
108
|
-
router.post('/projects', async (req, res) => {
|
|
108
|
+
router.post('/projects/create', async (req, res) => {
|
|
109
109
|
try {
|
|
110
110
|
const auth = await config.authProvider(req);
|
|
111
111
|
if (auth.role !== 'admin' && auth.role !== 'editor') {
|
|
@@ -3,10 +3,10 @@ import { ProjectProvider } from '../types';
|
|
|
3
3
|
export declare function createProjectService(req: Request, projectProvider: ProjectProvider): Promise<{
|
|
4
4
|
success: boolean;
|
|
5
5
|
project: {
|
|
6
|
-
|
|
6
|
+
_id: string;
|
|
7
7
|
name: string;
|
|
8
|
-
description: string | undefined;
|
|
9
8
|
image: string | undefined;
|
|
9
|
+
description: string | undefined;
|
|
10
10
|
settings: {
|
|
11
11
|
allowUpload?: boolean;
|
|
12
12
|
allowSharing?: boolean;
|
package/dist/services/project.js
CHANGED
|
@@ -13,10 +13,10 @@ async function createProjectService(req, projectProvider) {
|
|
|
13
13
|
return {
|
|
14
14
|
success: true,
|
|
15
15
|
project: {
|
|
16
|
-
|
|
16
|
+
_id: newProject._id,
|
|
17
17
|
name: newProject.name,
|
|
18
|
-
description: newProject.description,
|
|
19
18
|
image: newProject.image,
|
|
19
|
+
description: newProject.description,
|
|
20
20
|
settings: newProject.settings,
|
|
21
21
|
rootFolders: newProject.rootFolders || [],
|
|
22
22
|
}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -12,7 +12,7 @@ export interface StorageAdapter {
|
|
|
12
12
|
getPresignedUrl?: (filename: string, contentType: string) => Promise<string>;
|
|
13
13
|
}
|
|
14
14
|
export interface ProjectInfo {
|
|
15
|
-
|
|
15
|
+
_id: string;
|
|
16
16
|
name: string;
|
|
17
17
|
image?: string;
|
|
18
18
|
description?: string;
|
|
@@ -23,7 +23,7 @@ export interface ProjectInfo {
|
|
|
23
23
|
};
|
|
24
24
|
}
|
|
25
25
|
export interface FolderNode {
|
|
26
|
-
|
|
26
|
+
_id: string;
|
|
27
27
|
name: string;
|
|
28
28
|
children?: FolderNode[];
|
|
29
29
|
}
|