package com.safeqr.app.user.controller; import com.safeqr.app.user.service.UserService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.http.MediaType; import org.springframework.http.ResponseEntity; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; @RestController @RequestMapping("/v1") public class UserController { @Autowired UserService userService; @GetMapping(value = "/version", produces = MediaType.APPLICATION_JSON_VALUE) public ResponseEntity version() { System.out.println(userService.getUserByEmail()); return ResponseEntity.ok("SafeQR v1.0.2"); } }