diff --git a/server/src/main/java/com/mixel/docusphere/controller/DocumentController.java b/server/src/main/java/com/mixel/docusphere/controller/DocumentController.java index c3f0ac6..b371e28 100644 --- a/server/src/main/java/com/mixel/docusphere/controller/DocumentController.java +++ b/server/src/main/java/com/mixel/docusphere/controller/DocumentController.java @@ -11,11 +11,15 @@ import java.util.Optional; import java.util.UUID; @RestController -@RequestMapping("/documents") +@RequestMapping("/api/v1/documents") public class DocumentController { + private final DocumentService documentService; + @Autowired - private DocumentService documentService; + public DocumentController(DocumentService documentService) { + this.documentService = documentService; + } @GetMapping public List getAllDocuments() { diff --git a/server/src/main/java/com/mixel/docusphere/controller/UserController.java b/server/src/main/java/com/mixel/docusphere/controller/UserController.java index 211c8b7..5b9035f 100644 --- a/server/src/main/java/com/mixel/docusphere/controller/UserController.java +++ b/server/src/main/java/com/mixel/docusphere/controller/UserController.java @@ -11,11 +11,15 @@ import java.util.Optional; import java.util.UUID; @RestController -@RequestMapping("/users") +@RequestMapping("/api/v1/users") public class UserController { + private final UserService userService; + @Autowired - private UserService userService; + public UserController(UserService userService) { + this.userService = userService; + } @GetMapping public List getAllUsers() {