first commit
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
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<String> version() {
|
||||
System.out.println(userService.getUserByEmail());
|
||||
return ResponseEntity.ok("SafeQR v1.0.0");
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user