streamby-core 0.7.0 → 0.7.2

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') {
@@ -5,8 +5,8 @@ export declare function createProjectService(req: Request, projectProvider: Proj
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;
@@ -15,8 +15,8 @@ async function createProjectService(req, projectProvider) {
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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "streamby-core",
3
- "version": "0.7.0",
3
+ "version": "0.7.2",
4
4
  "description": "StreamBy middleware framework for media storage management",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",