Cleaned demo controller
This commit is contained in:
parent
b384966ec7
commit
a84c16a101
@ -19,7 +19,7 @@ import org.ros.chatto.repository.UserRepository;
|
||||
import org.ros.chatto.repository.UserRepositoryCustom;
|
||||
import org.ros.chatto.repository.UserRoleRepository;
|
||||
import org.ros.chatto.service.UserService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.context.annotation.Lazy;
|
||||
import org.springframework.http.HttpStatus;
|
||||
import org.springframework.http.ResponseEntity;
|
||||
import org.springframework.security.core.Authentication;
|
||||
@ -33,25 +33,28 @@ import org.springframework.web.bind.annotation.RequestMethod;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import org.springframework.web.servlet.ModelAndView;
|
||||
|
||||
import lombok.RequiredArgsConstructor;
|
||||
|
||||
@RestController
|
||||
@RequestMapping("/api/demo")
|
||||
@RequiredArgsConstructor
|
||||
@Lazy
|
||||
// @CrossOrigin(origins = "*", allowCredentials = "true", allowedHeaders = "*")
|
||||
public class DemoRestController {
|
||||
|
||||
@Autowired
|
||||
UserRepository userRepository;
|
||||
@Autowired
|
||||
UserRepositoryCustom userRepositoryCustom;
|
||||
@Autowired
|
||||
RoleRepository roleRepository;
|
||||
@Autowired
|
||||
UserRoleRepository userRoleRepository;
|
||||
@Autowired
|
||||
MessageCipherRepository messageCipherRepository;
|
||||
@Autowired
|
||||
ChatMessageRepository chatMessageRepository;
|
||||
@Autowired
|
||||
private UserService userService;
|
||||
private final UserRepository userRepository;
|
||||
|
||||
private final UserRepositoryCustom userRepositoryCustom;
|
||||
|
||||
private final RoleRepository roleRepository;
|
||||
|
||||
private final UserRoleRepository userRoleRepository;
|
||||
|
||||
private final MessageCipherRepository messageCipherRepository;
|
||||
|
||||
private final ChatMessageRepository chatMessageRepository;
|
||||
|
||||
private final UserService userService;
|
||||
|
||||
@GetMapping("/users")
|
||||
public List<ChatUser> getAllUsers() {
|
||||
|
Loading…
Reference in New Issue
Block a user