|
@ -6,12 +6,11 @@ import de.fd.fh.server.access.AccessToken; |
|
|
import de.fd.fh.server.user.User; |
|
|
import de.fd.fh.server.user.User; |
|
|
import de.fd.fh.server.user.UserId; |
|
|
import de.fd.fh.server.user.UserId; |
|
|
import de.fd.fh.server.user.UserService; |
|
|
import de.fd.fh.server.user.UserService; |
|
|
|
|
|
import lombok.RequiredArgsConstructor; |
|
|
import spark.Request; |
|
|
import spark.Request; |
|
|
import spark.Response; |
|
|
import spark.Response; |
|
|
|
|
|
|
|
|
import static spark.Spark.get; |
|
|
|
|
|
import static spark.Spark.post; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@RequiredArgsConstructor |
|
|
public class UserController |
|
|
public class UserController |
|
|
{ |
|
|
{ |
|
|
private ObjectMapper objectMapper = new ObjectMapper(); |
|
|
private ObjectMapper objectMapper = new ObjectMapper(); |
|
@ -88,11 +87,4 @@ public class UserController |
|
|
|
|
|
|
|
|
return response; |
|
|
return response; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
public UserController(final UserService service) |
|
|
|
|
|
{ |
|
|
|
|
|
this.service = service; |
|
|
|
|
|
|
|
|
|
|
|
get("/users/:user_id", this::getUser); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
} |