getAllPresets
parent
fa51b78eec
commit
0ccfb5e51c
|
|
@ -299,14 +299,6 @@ public class KalenderRestController {
|
||||||
return implementer.get(request);
|
return implementer.get(request);
|
||||||
}
|
}
|
||||||
|
|
||||||
@CrossOrigin("*")
|
|
||||||
@GetMapping("api/initPresets")
|
|
||||||
@ResponseBody
|
|
||||||
public Object initPresets() throws ARException, NotFoundError {
|
|
||||||
Presets presets = new Presets(javaAPI);
|
|
||||||
return presets.initPresets();
|
|
||||||
}
|
|
||||||
|
|
||||||
@CrossOrigin("*")
|
@CrossOrigin("*")
|
||||||
@PostMapping("/api/savePreset")
|
@PostMapping("/api/savePreset")
|
||||||
@ResponseBody
|
@ResponseBody
|
||||||
|
|
@ -321,11 +313,28 @@ public class KalenderRestController {
|
||||||
// @CrossOrigin("*")
|
// @CrossOrigin("*")
|
||||||
// @PostMapping("/api/selectPreset")
|
// @PostMapping("/api/selectPreset")
|
||||||
// @ResponseBody
|
// @ResponseBody
|
||||||
// public boolean selectPreset(@RequestBody String guid) throws ARException, NotFoundError {
|
// public boolean selectPreset(@RequestBody String guid) throws ARException,
|
||||||
// Presets presets = new Presets(javaAPI);
|
// NotFoundError {
|
||||||
// return presets.selectPreset(guid);
|
// Presets presets = new Presets(javaAPI);
|
||||||
|
// return presets.selectPreset(guid);
|
||||||
// }
|
// }
|
||||||
|
|
||||||
|
@CrossOrigin("*")
|
||||||
|
@GetMapping("api/updatePresets")
|
||||||
|
@ResponseBody
|
||||||
|
public Object initPresets() throws ARException, NotFoundError {
|
||||||
|
Presets presets = new Presets(javaAPI);
|
||||||
|
return presets.initPresets();
|
||||||
|
}
|
||||||
|
|
||||||
|
@CrossOrigin("*")
|
||||||
|
@GetMapping("/api/getAllPresets")
|
||||||
|
@ResponseBody
|
||||||
|
public List<Preset> savePreset() throws NotFoundError, ARException {
|
||||||
|
Presets presets = new Presets(javaAPI);
|
||||||
|
return presets.getAll();
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Logs the received request with the endpoint and request body.
|
* Logs the received request with the endpoint and request body.
|
||||||
*
|
*
|
||||||
|
|
|
||||||
|
|
@ -109,7 +109,8 @@ public class Presets {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public List<Preset> getAll() {
|
public List<Preset> getAll() throws NotFoundError, ARException {
|
||||||
|
allPresets();
|
||||||
return this.presets;
|
return this.presets;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue