From 5a72ff41e2dcfcd24b02430d4a99d99138ab9367 Mon Sep 17 00:00:00 2001 From: amazon-meaisiah Date: Fri, 5 Jun 2020 11:33:05 -0700 Subject: [PATCH] Hide the user request routes --- lambdas/backend/index.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lambdas/backend/index.js b/lambdas/backend/index.js index 0cce5c9de..ebc45f676 100644 --- a/lambdas/backend/index.js +++ b/lambdas/backend/index.js @@ -55,8 +55,9 @@ app.delete('/admin/catalog/:id/sdkGeneration', wrapError(require('./routes/admin app.get('/admin/accounts', wrapError(require('./routes/admin/accounts').get)) app.post('/admin/accounts', wrapError(require('./routes/admin/accounts').post)) app.put('/admin/accounts/resendInvite', wrapError(require('./routes/accounts/resendInvite').put)) -app.put('/admin/accounts/:userId/approveRequest', wrapError(require('./routes/accounts/approveRequest').put)) -app.put('/admin/accounts/:userId/denyRequest', wrapError(require('./routes/accounts/denyRequest').put)) +// Not ready for prime time just yet. +// app.put('/admin/accounts/:userId/approveRequest', wrapError(require('./routes/accounts/approveRequest').put)) +// app.put('/admin/accounts/:userId/denyRequest', wrapError(require('./routes/accounts/denyRequest').put)) app.put('/admin/accounts/:userId/promoteToAdmin', wrapError(require('./routes/accounts/promoteToAdmin').put)) app.delete('/admin/accounts/:userId', wrapError(require('./routes/admin/accounts').delete))