mapping is done with /api beforehand now
This commit is contained in:
parent
8803f4419a
commit
f031ae9a91
@ -33,13 +33,13 @@ public class Controller {
|
|||||||
@Autowired
|
@Autowired
|
||||||
UserRepository userRepository;
|
UserRepository userRepository;
|
||||||
|
|
||||||
@RequestMapping("/allCaches")
|
@RequestMapping("/api/allCaches")
|
||||||
@ResponseBody
|
@ResponseBody
|
||||||
public String getAllCaches() {
|
public String getAllCaches() {
|
||||||
return new Gson().toJson(cacheRepository.findAll());
|
return new Gson().toJson(cacheRepository.findAll());
|
||||||
}
|
}
|
||||||
|
|
||||||
@RequestMapping("/startCache")
|
@RequestMapping("/api/startCache")
|
||||||
public @ResponseBody
|
public @ResponseBody
|
||||||
String startCache(@RequestParam(value = "userID", defaultValue = "-1") String userID,
|
String startCache(@RequestParam(value = "userID", defaultValue = "-1") String userID,
|
||||||
@RequestParam String cacheID) throws IllegalParameterException {
|
@RequestParam String cacheID) throws IllegalParameterException {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user