Skip to content

Instantly share code, notes, and snippets.

@vinodkiran
Created August 23, 2024 04:13
Show Gist options
  • Select an option

  • Save vinodkiran/731e5687d54e3694f86c4ea2b02aa425 to your computer and use it in GitHub Desktop.

Select an option

Save vinodkiran/731e5687d54e3694f86c4ea2b02aa425 to your computer and use it in GitHub Desktop.
flowise DocStore public api
-- routes/documentstore/index.ts
// document store external routes
router.post('/load-store/:storeid/:loaderId', documentStoreController.uploadDocumentStoreFile)
router.post('/check-status/:uploadId', documentStoreController.checkUploadStatus)
-- constrollers/documentstore/index.ts
const uploadDocumentStoreFile = async (req: Request, res: Response, next: NextFunction) => {
try {
const apiResponse = await documentStoreService.getRecordManagerProviders()
return res.json(apiResponse)
} catch (error) {
next(error)
}
}
const checkUploadStatus = async (req: Request, res: Response, next: NextFunction) => {
try {
const apiResponse = await documentStoreService.getRecordManagerProviders()
return res.json(apiResponse)
} catch (error) {
next(error)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment