Created
August 23, 2024 04:13
-
-
Save vinodkiran/731e5687d54e3694f86c4ea2b02aa425 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