mirror of
https://github.com/sakaljurgis/best-choice.git
synced 2026-11-07 14:18:03 +00:00
add item by url 1st step
This commit is contained in:
1 parent
afc3da3e65
commit
ff18d0daeb
7 files changed
+448
-105
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user