Files
Flowise/packages/ui/src/api/apikey.js
T
2023-04-29 18:01:40 +01:00

17 lines
353 B
JavaScript

import client from './client'
const getAllAPIKeys = () => client.get('/apikey')
const createNewAPI = (body) => client.post(`/apikey`, body)
const updateAPI = (id, body) => client.put(`/apikey/${id}`, body)
const deleteAPI = (id) => client.delete(`/apikey/${id}`)
export default {
getAllAPIKeys,
createNewAPI,
updateAPI,
deleteAPI
}