Skip to content

Commit

Permalink
fix: README RequestParam (#31)
Browse files Browse the repository at this point in the history
  • Loading branch information
malte-baumann committed Apr 8, 2024
1 parent 9e27b7c commit 5fab8f8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ public class FeatureDemoController {
}

@GetMapping
public String feature(@RequestMapping final String name) {
public String feature(@RequestParam final String name) {
return featureDemoService.getDemoString(name, UnleashContext.builder().addProperty("name", name).build());
}
}
Expand All @@ -154,7 +154,7 @@ public class FeatureDemoController {
}

@GetMapping
public String feature(@RequestMapping @Context(name = "name") final String name) {
public String feature(@RequestParam @Context(name = "name") final String name) {
return featureDemoService.getDemoString(name);
}
}
Expand Down

0 comments on commit 5fab8f8

Please sign in to comment.