Akka Http Core - How to get Request Parameter?

Using akka-http, I just want to get a simple parameter from a request such as the “1234” in “http://site.com/login/?user=1234

One tutorial led me to create a Http server with (HttpRequest => HttpResponse):

bindSync(requestHandler)

val requestHandler: HttpRequest => HttpResponse = {
case req @ HttpRequest(HttpMethods.GET, Uri.Path(“/login”), _, _, _) =>

I need to create the server this way for other reasons, but I cannot figure out how to get a parameter after the slash such as the “user=1234” part.