mirror of
https://github.com/farcasclaudiu/Flowise.git
synced 2026-06-28 19:00:59 +03:00
Chore/Update GET to POST requests (#4924)
Refactor account and evaluations routes to use POST for billing and run-again endpoints - Changed the billing route from GET to POST in account.route.ts and account.api.js for consistency with other account actions. - Updated the run-again route from GET to POST in evaluations/index.ts and evaluations.js to align with the API design for creating actions.
This commit is contained in:
@@ -6,7 +6,7 @@ const verifyAccountEmail = (body) => client.post('/account/verify', body)
|
||||
const resendVerificationEmail = (body) => client.post('/account/resend-verification', body)
|
||||
const forgotPassword = (body) => client.post('/account/forgot-password', body)
|
||||
const resetPassword = (body) => client.post('/account/reset-password', body)
|
||||
const getBillingData = () => client.get('/account/billing')
|
||||
const getBillingData = () => client.post('/account/billing')
|
||||
const cancelSubscription = (body) => client.post('/account/cancel-subscription', body)
|
||||
const logout = () => client.post('/account/logout')
|
||||
const getBasicAuth = () => client.get('/account/basic-auth')
|
||||
|
||||
@@ -6,7 +6,7 @@ const getIsOutdated = (id) => client.get(`/evaluations/is-outdated/${id}`)
|
||||
const getEvaluation = (id) => client.get(`/evaluations/${id}`)
|
||||
const createEvaluation = (body) => client.post(`/evaluations`, body)
|
||||
const deleteEvaluation = (id) => client.delete(`/evaluations/${id}`)
|
||||
const runAgain = (id) => client.get(`/evaluations/run-again/${id}`)
|
||||
const runAgain = (id) => client.post(`/evaluations/run-again/${id}`)
|
||||
const getVersions = (id) => client.get(`/evaluations/versions/${id}`)
|
||||
const deleteEvaluations = (ids, isDeleteAllVersion) => client.patch(`/evaluations`, { ids, isDeleteAllVersion })
|
||||
|
||||
|
||||
Reference in New Issue
Block a user