Spaces:
Sleeping
Sleeping
Commit
·
b960f03
1
Parent(s):
cc67fda
changes
Browse files
src/main/java/ai/giskard/learnspringwebsockets/IndexController.java
CHANGED
@@ -3,10 +3,16 @@ package ai.giskard.learnspringwebsockets;
|
|
3 |
import org.springframework.web.bind.annotation.GetMapping;
|
4 |
import org.springframework.web.bind.annotation.RestController;
|
5 |
|
6 |
-
@RestController
|
7 |
public class IndexController {
|
8 |
-
@GetMapping("
|
9 |
public String index() {
|
10 |
return "Hello world!";
|
11 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
12 |
}
|
|
|
3 |
import org.springframework.web.bind.annotation.GetMapping;
|
4 |
import org.springframework.web.bind.annotation.RestController;
|
5 |
|
6 |
+
@RestController("/")
|
7 |
public class IndexController {
|
8 |
+
@GetMapping("")
|
9 |
public String index() {
|
10 |
return "Hello world!";
|
11 |
}
|
12 |
+
|
13 |
+
@GetMapping("test")
|
14 |
+
public String test() {
|
15 |
+
return "test";
|
16 |
+
}
|
17 |
+
|
18 |
}
|