Umm... they are both spray ways.  But the answer is probably because I don't know what I'm doing...

________________________________
From: Mark Schaake [notifications@github.com]
Sent: Wednesday, February 26, 2014 11:39 AM
To: allenai/taggers
Cc: Michael Schmitz
Subject: Re: [taggers] Add a main method to start a tagger as an extraction server. (#68)


In cli/src/main/scala/org/allenai/taggers/TaggerServer.scala:

> +
> +  def run(config: Config): Unit = {
> +    val cascade = Cascade.load(config.cascadeFile, config.cascadeFile.getName)
> +    val app = new TaggerApp(cascade)
> +
> +    val info = Map(
> +        "name" -> cascade.name
> +      )
> +
> +    def infoRoute: Route = get {
> +      path("info") {
> +        complete {
> +          info.keys mkString "\n"
> +        }
> +      } ~
> +      path("info" / "\\w+".r) { key =>


I've seen this in other code. Wondering why we don't just use the spray way?:

path("info" / Segment) { key =>
...
}


—
Reply to this email directly or view it on GitHub<https://github.com/allenai/taggers/pull/68/files#r10095359>.