Commit 90f47f8c authored by Grzegorz Pietrusza's avatar Grzegorz Pietrusza

add todos

parent 0946634c
...@@ -19,7 +19,6 @@ public class User implements Principal { ...@@ -19,7 +19,6 @@ public class User implements Principal {
private String password; private String password;
private String email; private String email;
@JsonCreator @JsonCreator
public User(@JsonProperty("name") String name, public User(@JsonProperty("name") String name,
@JsonProperty("password") String password, @JsonProperty("password") String password,
......
...@@ -38,6 +38,8 @@ public class TasksResource ...@@ -38,6 +38,8 @@ public class TasksResource
return tasksRepository.getAllPublic(); return tasksRepository.getAllPublic();
} }
//todo: make it admin endpoint, any username as parameter
//todo: admin authorization
@GET @GET
@Path("my") @Path("my")
public Collection<String> getUserFlags(@Auth User user) { public Collection<String> getUserFlags(@Auth User user) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment