mapping is done with /api beforehand now
This commit is contained in:
parent
8803f4419a
commit
f031ae9a91
@ -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 {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user