From 3f2541aacb6ba5f10e8cc4462e7208fd25aff9c4 Mon Sep 17 00:00:00 2001 From: Macbook Date: Sun, 7 Dec 2025 21:17:37 +0300 Subject: [PATCH] =?UTF-8?q?=D1=87=D0=B5=D1=8B=D1=80=D0=B5=D0=B4=D0=BD?= =?UTF-8?q?=D0=B0=D1=8F=20=D0=BF=D1=80=D0=B0=D0=B2=D0=BA=D0=B0=20=D1=82?= =?UTF-8?q?=D0=BE=D1=87=D0=B5=D0=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/routers/stocks.py | 4 ++-- api/static/js/index.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/api/routers/stocks.py b/api/routers/stocks.py index 9ab1a75..ede9fd6 100644 --- a/api/routers/stocks.py +++ b/api/routers/stocks.py @@ -41,7 +41,7 @@ async def post_requests( return response -@router.post("/action/", summary="Запрос на перемещение инструмента") +@router.post("/action", summary="Запрос на перемещение инструмента") async def post_requests( request_data: dict = Depends(requestDict), ): @@ -109,7 +109,7 @@ async def post_requests( return resonse -@router.post("/toolkit/", summary="Запрос остатка инструмента") +@router.post("/toolkit", summary="Запрос остатка инструмента") async def toolkit_request( request_data: dict = Depends(requestDict), ): diff --git a/api/static/js/index.js b/api/static/js/index.js index 293041c..9d3ae75 100644 --- a/api/static/js/index.js +++ b/api/static/js/index.js @@ -1009,7 +1009,7 @@ async function initializeToolboxTable(data, toolboxOwn, quantityMonitoring) { async function getToolkitStocks(toolkitId) { const userId = userData.id; const allToolboxes = accessData.view_all_toolboxes; - const resp = await apiRequest('/stocks/toolkit/', { toolkitId, userId, allToolboxes }); + const resp = await apiRequest('/stocks/toolkit', { toolkitId, userId, allToolboxes }); return resp.data; } @@ -1297,7 +1297,7 @@ async function showOperationModal(operation, selectedItem) { async function actionRequest(operation, quantity, comment, selectedItem) { const action = { operation, quantity, comment, selectedItem }; const sendData = { userData, accessData, action }; - const resp = await apiRequest('/stocks/action/', sendData); + const resp = await apiRequest('/stocks/action', sendData); if (resp.status == 'ok') { return true } else {