Skip to content

Commit 3b9d1a9

Browse files
ping pong controller (#4)
1 parent 654dddd commit 3b9d1a9

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
package com.amigoscode.pingpong;
2+
3+
import org.springframework.web.bind.annotation.GetMapping;
4+
import org.springframework.web.bind.annotation.RequestMapping;
5+
import org.springframework.web.bind.annotation.RestController;
6+
7+
@RestController
8+
@RequestMapping("api/v1/ping")
9+
public class PingPongController {
10+
11+
@GetMapping
12+
public String pingPong() {
13+
return "pong";
14+
}
15+
16+
}

0 commit comments

Comments
 (0)