MCPcopy Create free account
hub / github.com/error311/FileRise / getUsers

Method getUsers

src/FileRise/Http/Controllers/UserController.php:134–143  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

132 /* ------------------------- End helpers -------------------------- */
133
134 public function getUsers()
135 {
136 self::jsonHeaders();
137 self::requireAdmin();
138
139 // Retrieve users using the model
140 $users = UserModel::getAllUsers();
141 echo json_encode($users);
142 exit;
143 }
144
145 public function addUser()
146 {

Callers 1

getUsers.phpFile · 0.80

Calls 3

jsonHeadersMethod · 0.95
requireAdminMethod · 0.95
getAllUsersMethod · 0.80

Tested by

no test coverage detected