I have a Post request sent over a network to get data related to a user I'm using Http4s for this.
When writing the HttpRoutes I'm using this to handle the case of POST as follows:
case req @ POST -> Root/ "posts" { "name": username, "friends": friends} =>
the name
and the friends
are attributes passed as parameters in the body of the request.
Yet there is some syntax error I can seem to identify '=>' expected but '{' found
.