Created some user endpoints ; Pretty code
This commit is contained in:
9
concord-server/src/controller/userController.ts
Normal file
9
concord-server/src/controller/userController.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
import { getAllUsersFrom, getUserInformation } from "../services/userService";
|
||||
|
||||
export async function fetchUserData(id: string) {
|
||||
return await getUserInformation(id);
|
||||
}
|
||||
|
||||
export async function fetchAllUsers(instanceId: string) {
|
||||
return await getAllUsersFrom(instanceId);
|
||||
}
|
||||
Reference in New Issue
Block a user