/updateStatus should be in both admin.js and cashier.js
Opened this issue · 1 comments
HamzaTatheer commented
Basically when there are two user roles, then we are allowed to duplicate code as later on /updateStatus could turn out to be different for both roles
so i should be able to access
/api/admin/updateStatus
/api/cashier/updateStatus
fla-t commented
I think it should be in order, because it is related to Order. the auth middleware can detect the user role.