We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a3e9d7d commit a17040dCopy full SHA for a17040d
1 file changed
src/main/java/io/autoinvestor/ui/RequestId/ControllerRequestId.java
@@ -1,15 +1,12 @@
1
package io.autoinvestor.ui.RequestId;
2
3
-import org.springframework.web.bind.annotation.GetMapping;
4
-import org.springframework.web.bind.annotation.RequestBody;
5
-import org.springframework.web.bind.annotation.RequestMapping;
6
-import org.springframework.web.bind.annotation.RestController;
+import org.springframework.web.bind.annotation.*;
7
8
@RestController
9
@RequestMapping("/api/userId")
10
public class ControllerRequestId {
11
12
- @GetMapping
+ @PostMapping
13
public String getUserId(@RequestBody EmailRequest email) {
14
if (email.getEmail().equals("mate.alfredo98@gmail.com")) {
15
return "12345";
0 commit comments