This commit is contained in:
payacom
2026-09-13 21:32:36 +03:30
parent 90c5f94b57
commit c302aea177
49 changed files with 4063 additions and 920 deletions

View File

@@ -21,7 +21,11 @@ const {
startDeviceLink,
getDeviceLinkSession,
approveDeviceLink,
pollDeviceLink
pollDeviceLink,
getOrCreateAutoBackupSecret,
putKeyBackup,
getKeyBackup,
deleteKeyBackup
} = require('../../../controllers/application/account/e2eeController')
const router = express.Router()
@@ -44,5 +48,9 @@ router.post('/e2ee/device-link', auth, blockCheck, startDeviceLink)
router.get('/e2ee/device-link/:linkId', auth, blockCheck, getDeviceLinkSession)
router.post('/e2ee/device-link/:linkId/approve', auth, blockCheck, approveDeviceLink)
router.get('/e2ee/device-link/:linkId/poll', auth, blockCheck, pollDeviceLink)
router.get('/e2ee/auto-backup-secret', auth, blockCheck, getOrCreateAutoBackupSecret)
router.put('/e2ee/key-backup', auth, blockCheck, putKeyBackup)
router.get('/e2ee/key-backup', auth, blockCheck, getKeyBackup)
router.delete('/e2ee/key-backup', auth, blockCheck, deleteKeyBackup)
module.exports = router