Skip to content

Commit

Permalink
Added default response
Browse files Browse the repository at this point in the history
  • Loading branch information
mkheck committed Nov 8, 2021
1 parent 464f2b9 commit 27b3751
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,11 @@ class AirportController {
private String token;
private final WebClient client = WebClient.create("https://avwx.rest/api/");

@GetMapping
public final Mono<METAR> retrieveDefaultMETAR() {
return retrieveMETAR("KSTL");
}

@GetMapping("/metar/{id}")
public final Mono<METAR> retrieveMETAR(@PathVariable String id) {
System.out.println(">>> retrieveMETAR, ID: " + id);
Expand Down

0 comments on commit 27b3751

Please sign in to comment.