added @RequestParam i accidently removed earlier

This commit is contained in:
Michael 2019-03-28 17:11:31 +01:00
parent 67216233f9
commit e0c2f4eda0
2 changed files with 2 additions and 1 deletions

1
.gitignore vendored
View File

@ -7,6 +7,7 @@
.idea/**/usage.statistics.xml
.idea/**/dictionaries
.idea/**/shelf
done.txt
# Generated files
.idea/**/contentModel.xml

View File

@ -122,7 +122,7 @@ public class Controller {
@CrossOrigin(origins = "http://localhost:8081") // only for dev purpose
@RequestMapping("api/logout")
@ResponseBody
String logout(String token) {
String logout(@RequestParam String token) {
User user = userRepository.findByUsername(token.substring(0, token.indexOf("$")));
user.setToken("abgemeldet");