added savePreset handler
parent
0c82358cfb
commit
41b229e8b3
|
|
@ -1,6 +1,7 @@
|
|||
package com.nttdata.calender.api;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.logging.log4j.LogManager;
|
||||
import org.apache.logging.log4j.Logger;
|
||||
|
|
@ -309,12 +310,11 @@ public class KalenderRestController {
|
|||
@CrossOrigin("*")
|
||||
@PostMapping("/api/savePreset")
|
||||
@ResponseBody
|
||||
public Preset savePreset(@RequestBody Preset request)
|
||||
throws ARException, ValidationError {
|
||||
change.modifyTimestamp(request);
|
||||
return request;
|
||||
public List<Preset> savePreset(@RequestBody Preset request)
|
||||
throws ARException, ValidationError, NotFoundError {
|
||||
Presets presets = new Presets(javaAPI);
|
||||
return presets.getAll();
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Logs the received request with the endpoint and request body.
|
||||
|
|
|
|||
Loading…
Reference in New Issue