mirror of
https://github.com/farcasclaudiu/Flowise.git
synced 2026-06-22 15:01:13 +03:00
23 lines
601 B
JavaScript
23 lines
601 B
JavaScript
import client from './client'
|
|
|
|
const getAllChatflows = () => client.get('/chatflows')
|
|
|
|
const getSpecificChatflow = (id) => client.get(`/chatflows/${id}`)
|
|
|
|
const createNewChatflow = (body) => client.post(`/chatflows`, body)
|
|
|
|
const updateChatflow = (id, body) => client.put(`/chatflows/${id}`, body)
|
|
|
|
const deleteChatflow = (id) => client.delete(`/chatflows/${id}`)
|
|
|
|
const getIsChatflowStreaming = (id) => client.get(`/chatflows-streaming/${id}`)
|
|
|
|
export default {
|
|
getAllChatflows,
|
|
getSpecificChatflow,
|
|
createNewChatflow,
|
|
updateChatflow,
|
|
deleteChatflow,
|
|
getIsChatflowStreaming
|
|
}
|