mirror of
https://github.com/farcasclaudiu/Flowise.git
synced 2026-06-24 23:00:55 +03:00
29 lines
846 B
JavaScript
29 lines
846 B
JavaScript
import client from './client'
|
|
|
|
const getAllChatflows = () => client.get('/chatflows')
|
|
|
|
const getSpecificChatflow = (id) => client.get(`/chatflows/${id}`)
|
|
|
|
const getSpecificChatflowFromPublicEndpoint = (id) => client.get(`/public-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}`)
|
|
|
|
const getAllowChatflowUploads = (id) => client.get(`/chatflows-uploads/${id}`)
|
|
|
|
export default {
|
|
getAllChatflows,
|
|
getSpecificChatflow,
|
|
getSpecificChatflowFromPublicEndpoint,
|
|
createNewChatflow,
|
|
updateChatflow,
|
|
deleteChatflow,
|
|
getIsChatflowStreaming,
|
|
getAllowChatflowUploads
|
|
}
|