add item by url 1st step

This commit is contained in:
Jurgis Sakalauskas
2025-10-13 15:46:04 +03:00
parent afc3da3e65
commit ff18d0daeb
7 changed files with 448 additions and 105 deletions
+2
View File
@@ -3,6 +3,7 @@ import {
createItem,
deleteItem,
getItem,
importItemFromUrl,
listItems,
updateItem
} from '../controllers/items-controller.js';
@@ -33,6 +34,7 @@ apiRouter.delete('/projects/:projectId', asyncHandler(deleteProject));
// Project items
apiRouter.get('/projects/:projectId/items', asyncHandler(listItems));
apiRouter.post('/projects/:projectId/items/import', asyncHandler(importItemFromUrl));
apiRouter.post('/projects/:projectId/items', asyncHandler(createItem));
// Items