Skip to content

Commit

Permalink
granted admin acess (#137)
Browse files Browse the repository at this point in the history
  • Loading branch information
13XAVI authored Jul 5, 2024
1 parent 9ba5d84 commit 2519b9b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/routes/checkoutRoutes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {
} from '../controller/cartController';

const checkoutRoutes = Router();
checkoutRoutes.use(IsLoggedIn, checkRole(['Buyer']));
checkoutRoutes.use(IsLoggedIn, checkRole(['Buyer', 'Admin']));
checkoutRoutes.route('/').post(checkout);
checkoutRoutes.route('/removeall-order').delete(deleteAllOrders);
checkoutRoutes.route('/getall-order').get(getAllOrders);
Expand Down

0 comments on commit 2519b9b

Please sign in to comment.