Initial commit

This commit is contained in:
Luka Romih
2022-12-07 04:43:36 +01:00
commit 257f3c354f
496 changed files with 55373 additions and 0 deletions
+34
View File
@@ -0,0 +1,34 @@
const router = require('express-promise-router')()
const {
create,
syncRemoteDictionaries,
fetchDictionary,
updatePortalStatus,
listSelectedLinkedDicts,
listAllLinkedDicts,
deleteLinkedDictionary
} = require('../../../controllers/api/v1/portals')
// Create new portal connection
router.post('/createPortal', create)
// Synchronize all dictionaries (without entries) for linked portal.
router.put('/:linkedPortalId/dictionaries', syncRemoteDictionaries)
// Delete linked portal.
router.delete('/:linkedPortalId/deleteLinkedDictionary', deleteLinkedDictionary)
// Fetch all dictionaries for selected portal
router.get('/getMyDictionaries', fetchDictionary)
// Update selected portal status (enable or disable)
router.post('/updatePortalStatus', updatePortalStatus)
// Fetch new page of dictionaries for pagination
router.get('/:portalId/listSelectedLinkedDicts', listSelectedLinkedDicts)
// Fetch new page of all linked dictionaries for pagination
router.get('/listAllLinkedDicts', listAllLinkedDicts)
module.exports = router