this.userRepository = userRepository;
}
@POST
public Response createPost(@PathParam("username") String username, @FormParam("content") String content) {
Post post = userRepository.getUser(username).createPost(content);
URI uri = UriBuilder.fromPath(post.getTimestamp().toString()).build();
return Response.created(uri).build();
}