mirror of
https://github.com/farcasclaudiu/Flowise.git
synced 2026-06-28 09:00:52 +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:
@@ -30,7 +30,7 @@ router.post('/reset-password', accountController.resetPassword)
|
||||
|
||||
router.post('/cancel-subscription', accountController.cancelPreviousCloudSubscrption)
|
||||
|
||||
router.get('/billing', accountController.createStripeCustomerPortalSession)
|
||||
router.post('/billing', accountController.createStripeCustomerPortalSession)
|
||||
|
||||
router.get('/basic-auth', accountController.getBasicAuth)
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@ router.get('/:id', checkPermission('evaluations:view'), evaluationsController.ge
|
||||
router.delete('/:id', checkPermission('evaluations:delete'), evaluationsController.deleteEvaluation)
|
||||
router.post('/', checkPermission('evaluations:create'), evaluationsController.createEvaluation)
|
||||
router.get('/is-outdated/:id', evaluationsController.isOutdated)
|
||||
router.get('/run-again/:id', checkAnyPermission('evaluations:create,evaluations:run'), evaluationsController.runAgain)
|
||||
router.post('/run-again/:id', checkAnyPermission('evaluations:create,evaluations:run'), evaluationsController.runAgain)
|
||||
router.get('/versions/:id', checkPermission('evaluations:view'), evaluationsController.getVersions)
|
||||
router.patch('/', checkPermission('evaluations:delete'), evaluationsController.patchDeleteEvaluations)
|
||||
export default router
|
||||
|
||||
Reference in New Issue
Block a user