mirror of
https://github.com/farcasclaudiu/Flowise.git
synced 2026-06-28 13:00:56 +03:00
add custom tool
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
import client from './client'
|
||||
|
||||
const getAllTools = () => client.get('/tools')
|
||||
|
||||
const getSpecificTool = (id) => client.get(`/tools/${id}`)
|
||||
|
||||
const createNewTool = (body) => client.post(`/tools`, body)
|
||||
|
||||
const updateTool = (id, body) => client.put(`/tools/${id}`, body)
|
||||
|
||||
const deleteTool = (id) => client.delete(`/tools/${id}`)
|
||||
|
||||
export default {
|
||||
getAllTools,
|
||||
getSpecificTool,
|
||||
createNewTool,
|
||||
updateTool,
|
||||
deleteTool
|
||||
}
|
||||
Reference in New Issue
Block a user