-
-
Save mdwoicke/2d5341076e0057cc19772ee67244daac to your computer and use it in GitHub Desktop.
flowise DocStore public api
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -- 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