add item by url 1st step

This commit is contained in:
Jurgis Sakalauskas committed 2025-10-13 15:46:04 +03:00
1 parent afc3da3e65
commit ff18d0daeb
7 files changed
+448 -105

No files matched your search

+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