mapping is done with /api beforehand now

This commit is contained in:
Michael 2019-03-25 13:14:54 +01:00
parent 8803f4419a
commit f031ae9a91

View File

@ -33,13 +33,13 @@ public class Controller {
@Autowired
UserRepository userRepository;
@RequestMapping("/allCaches")
@RequestMapping("/api/allCaches")
@ResponseBody
public String getAllCaches() {
return new Gson().toJson(cacheRepository.findAll());
}
@RequestMapping("/startCache")
@RequestMapping("/api/startCache")
public @ResponseBody
String startCache(@RequestParam(value = "userID", defaultValue = "-1") String userID,
@RequestParam String cacheID) throws IllegalParameterException {