Skip to content

Commit a7bd69c

Browse files
committed
add public /ping endpoint
1 parent 2e088a3 commit a7bd69c

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
package net.developerden.backend.controller;
2+
3+
import org.springframework.security.core.annotation.AuthenticationPrincipal;
4+
import org.springframework.web.bind.annotation.GetMapping;
5+
import org.springframework.web.bind.annotation.RestController;
6+
7+
@RestController
8+
public class InfoController {
9+
10+
@GetMapping("/ping")
11+
public String ping() {
12+
return "pong";
13+
}
14+
}

0 commit comments

Comments
 (0)