aboutsummaryrefslogtreecommitdiff
path: root/ufund-api/src/main/java/com/ufund/api/ufundapi/service
diff options
context:
space:
mode:
authorGunther6070 <haydenhartman10@yahoo.com>2025-04-02 16:56:27 -0400
committerGunther6070 <haydenhartman10@yahoo.com>2025-04-02 16:56:27 -0400
commitc561e9a5b36bafbb5e6f277b04f112941c2231a5 (patch)
tree7b7b8de827b12f32c87d5529e822d31abddcb59c /ufund-api/src/main/java/com/ufund/api/ufundapi/service
parentbc23c624a760b33bb67b3c0df5fd3d8f39f36e77 (diff)
downloadJellySolutions-c561e9a5b36bafbb5e6f277b04f112941c2231a5.tar.gz
JellySolutions-c561e9a5b36bafbb5e6f277b04f112941c2231a5.tar.bz2
JellySolutions-c561e9a5b36bafbb5e6f277b04f112941c2231a5.zip
Implemented new endpoint to get total number of users
Diffstat (limited to 'ufund-api/src/main/java/com/ufund/api/ufundapi/service')
-rw-r--r--ufund-api/src/main/java/com/ufund/api/ufundapi/service/UserService.java10
1 files changed, 10 insertions, 0 deletions
diff --git a/ufund-api/src/main/java/com/ufund/api/ufundapi/service/UserService.java b/ufund-api/src/main/java/com/ufund/api/ufundapi/service/UserService.java
index 6e27f50..8b34e68 100644
--- a/ufund-api/src/main/java/com/ufund/api/ufundapi/service/UserService.java
+++ b/ufund-api/src/main/java/com/ufund/api/ufundapi/service/UserService.java
@@ -56,6 +56,16 @@ public class UserService {
}
/**
+ * Returns the total number of users
+ *
+ * @return The number of users
+ * @throws IOException If there was any problem saving the file
+ */
+ public int getUserCount() throws IOException {
+ return userDAO.getUserCount();
+ }
+
+ /**
* Updates a user
*
* @param user The ID of the user to update