Flowise

Форк
0
36 строк · 1.5 Кб
1
import express from 'express'
2
import documentStoreController from '../../controllers/documentstore'
3
const router = express.Router()
4

5
/** Document Store Routes */
6
// Create document store
7
router.post('/store', documentStoreController.createDocumentStore)
8
// List all stores
9
router.get('/stores', documentStoreController.getAllDocumentStores)
10
// Get specific store
11
router.get('/store/:id', documentStoreController.getDocumentStoreById)
12
// Update documentStore
13
router.put('/store/:id', documentStoreController.updateDocumentStore)
14
// Delete documentStore
15
router.delete('/store/:id', documentStoreController.deleteDocumentStore)
16

17
/** Component Nodes = Document Store - Loaders */
18
// Get all loaders
19
router.get('/loaders', documentStoreController.getDocumentLoaders)
20

21
// delete loader from document store
22
router.delete('/loader/:id/:loaderId', documentStoreController.deleteLoaderFromDocumentStore)
23
// chunking preview
24
router.post('/loader/preview', documentStoreController.previewFileChunks)
25
// chunking process
26
router.post('/loader/process', documentStoreController.processFileChunks)
27

28
/** Document Store - Loaders - Chunks */
29
// delete specific file chunk from the store
30
router.delete('/chunks/:storeId/:loaderId/:chunkId', documentStoreController.deleteDocumentStoreFileChunk)
31
// edit specific file chunk from the store
32
router.put('/chunks/:storeId/:loaderId/:chunkId', documentStoreController.editDocumentStoreFileChunk)
33
// Get all file chunks from the store
34
router.get('/chunks/:storeId/:fileId/:pageNo', documentStoreController.getDocumentStoreFileChunks)
35

36
export default router
37

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.