add sample roles, get roles for mobile door
This commit is contained in:
1 parent
78aaebc8bb
commit
2eaa2a7020
4 files changed
+48
-18
No files matched your search
@@ -61,6 +61,7 @@ public class UserController {
|
||||
//access codes
|
||||
JSONArray accessCodes = new JSONArray();
|
||||
|
||||
|
||||
//message
|
||||
JSONObject message = new JSONObject();
|
||||
|
||||
@@ -89,6 +90,7 @@ public class UserController {
|
||||
@ResponseBody
|
||||
public String addMe() {
|
||||
User marcin = new User("Marcin", "Michalek", "marcin.marcim@gmail.com", "pass");
|
||||
|
||||
userRepository.save(marcin);
|
||||
|
||||
return "User created" + marcin.getUserId();
|
||||
|
||||
Reference in new issue
Block a user