anand-harsh / Edumi

Edumi, Place to learn and grow skills with proper maintenance
https://edumi.vercel.app/
9 stars 28 forks source link

[Backend] : Get all user for admin role #100

Closed anand-harsh closed 9 months ago

anand-harsh commented 10 months ago

Issue

We want that admin can get to know who all are enrolled in their course or for now, who all signup for the course

Solution

Make a endpoint that gets all the users ( name, email, role, createdAt )

Request : POST Endpoint: /getAllUsers

Note: Add admin and isAuthenticated middleware in route

Anushkabh commented 10 months ago

@anand-harsh i want to work under JWOC. kindly assign

Anushkabh commented 10 months ago

@anand-harsh request should be GET?

anand-harsh commented 9 months ago

@anand-harsh request should be GET?

yes

Anushkabh commented 9 months ago

@anand-harsh kindly review the pr #105