File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
turing-app/src/main/java/com/viglet/turing/api/system Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 3030import org .springframework .web .bind .annotation .*;
3131
3232import java .util .List ;
33+ import java .util .Locale ;
3334
3435@ RestController
3536@ RequestMapping ("/api/locale" )
@@ -50,13 +51,13 @@ public List<TurLocale> turLocaleList() {
5051
5152 @ Operation (summary = "Show a Locale" )
5253 @ GetMapping ("/{id}" )
53- public TurLocale turLocaleGet (@ PathVariable String id ) {
54+ public TurLocale turLocaleGet (@ PathVariable Locale id ) {
5455 return this .turLocaleRepository .findById (id ).orElse (new TurLocale ());
5556 }
5657
5758 @ Operation (summary = "Update a Locle" )
5859 @ PutMapping ("/{id}" )
59- public TurLocale turLocaleUpdate (@ PathVariable String id , @ RequestBody TurLocale turLocale ) {
60+ public TurLocale turLocaleUpdate (@ PathVariable Locale id , @ RequestBody TurLocale turLocale ) {
6061 return this .turLocaleRepository .findById (id ).map (turLocaleEdit -> {
6162 turLocaleEdit .setEn (turLocale .getEn ());
6263 turLocaleEdit .setPt (turLocale .getPt ());
You can’t perform that action at this time.
0 commit comments