reels
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
const express = require('express')
|
||||
const auth = require('../../../middlewares/auth')
|
||||
const blockCheck = require('../../../middlewares/blockCheck')
|
||||
const authRateLimit = require('../../../middlewares/authRateLimit')
|
||||
const {
|
||||
deactivateAccount,
|
||||
reactivateAccount,
|
||||
@@ -15,6 +16,10 @@ const {
|
||||
getArchivedPosts,
|
||||
getAccountAnalytics
|
||||
} = require('../../../controllers/application/profile/accountController')
|
||||
const {
|
||||
requestMobileOtp,
|
||||
verifyMobileOtp
|
||||
} = require('../../../controllers/application/account/registerMobileController')
|
||||
const {
|
||||
putMyPublicKey,
|
||||
getPublicKeyByUserId,
|
||||
@@ -22,7 +27,7 @@ const {
|
||||
getDeviceLinkSession,
|
||||
approveDeviceLink,
|
||||
pollDeviceLink,
|
||||
getOrCreateAutoBackupSecret,
|
||||
verifyPassword,
|
||||
putKeyBackup,
|
||||
getKeyBackup,
|
||||
deleteKeyBackup
|
||||
@@ -31,6 +36,8 @@ const {
|
||||
const router = express.Router()
|
||||
|
||||
router.get('/status', auth, blockCheck, getAccountStatus)
|
||||
router.post('/mobile/request', auth, blockCheck, requestMobileOtp)
|
||||
router.post('/mobile/verify', auth, blockCheck, verifyMobileOtp)
|
||||
router.get('/visitors', auth, blockCheck, getProfileVisitors)
|
||||
router.patch('/privacy', auth, blockCheck, updatePrivacySettings)
|
||||
router.post('/reset-algorithm', auth, blockCheck, resetAlgorithm)
|
||||
@@ -48,7 +55,7 @@ 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.post('/e2ee/verify-password', auth, blockCheck, authRateLimit, verifyPassword)
|
||||
router.put('/e2ee/key-backup', auth, blockCheck, putKeyBackup)
|
||||
router.get('/e2ee/key-backup', auth, blockCheck, getKeyBackup)
|
||||
router.delete('/e2ee/key-backup', auth, blockCheck, deleteKeyBackup)
|
||||
|
||||
Reference in New Issue
Block a user