Skip to content

Commit

Permalink
cleanup (#577)
Browse files Browse the repository at this point in the history
  • Loading branch information
deki committed Jul 11, 2023
1 parent 430dcd0 commit ff72372
Showing 1 changed file with 0 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
import org.springframework.web.server.ResponseStatusException;

import jakarta.validation.Valid;
import reactor.core.publisher.Mono;

import java.util.Collections;
import java.util.HashMap;
Expand All @@ -22,12 +21,6 @@ public class MessageController {
public static final String UTF8_RESPONSE = "öüäß фрыцшщ";
public static final String EX_MESSAGE = "404 exception message";


@RequestMapping(path="/hi", method=RequestMethod.GET, produces = {"text/plain"})
public Mono<String> hi() {
return Mono.just(HELLO_MESSAGE);
}

@SuppressWarnings({ "unchecked", "rawtypes" })
@RequestMapping(path = "/async", method = RequestMethod.POST)
@ResponseBody
Expand All @@ -37,7 +30,6 @@ public DeferredResult<Map<String, String>> asyncResult(@RequestBody Map<String,
return result;
}


@RequestMapping(path="/hello", method=RequestMethod.GET, produces = {"text/plain"})
public String hello() {
return HELLO_MESSAGE;
Expand Down

0 comments on commit ff72372

Please sign in to comment.