Skip to content
This repository was archived by the owner on Mar 14, 2021. It is now read-only.

Commit 7cd66b8

Browse files
committed
minor improvement
1 parent 4d3efae commit 7cd66b8

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/main/java/com/github/hauner/openapi/EchoController.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,14 @@
1818

1919
import com.github.hauner.openapi.api.EchoApi;
2020
import org.springframework.http.ResponseEntity;
21-
import org.springframework.stereotype.Controller;
21+
import org.springframework.web.bind.annotation.RestController;
2222

2323
/**
2424
* Implementation of the echo api defined in src/api/openapi.yaml.
2525
*
2626
* @author Martin Hauner
2727
*/
28-
@Controller
28+
@RestController
2929
public class EchoController implements EchoApi {
3030

3131
@Override

src/main/java/com/github/hauner/openapi/PingController.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,14 @@
1818

1919
import com.github.hauner.openapi.api.PingApi;
2020
import org.springframework.http.ResponseEntity;
21-
import org.springframework.stereotype.Controller;
21+
import org.springframework.web.bind.annotation.RestController;
2222

2323
/**
2424
* Implementation of the ping api defined in src/api/openapi.yaml.
2525
*
2626
* @author Martin Hauner
2727
*/
28-
@Controller
28+
@RestController
2929
public class PingController implements PingApi {
3030

3131
@Override

0 commit comments

Comments
 (0)