title: Spray routing multiple depth paths
body: <p>I have 4 levels of response based on URL. So for:<br>
  * GET on <code>/abc</code> -> response should be <code>abc</code><br>
  * GET on <code>/abc/def</code> -> response should be <code>def</code><br>
  * GET on <code>/abc/def/ghi</code> -> response should be <code>ghi</code><br>
  * GET on <code>/abc/def/ghi/jkl</code> -> response should be (surprisingly) <code>jkl</code>  </p>
  
  <p>So my question is how to design that kind of request-response property with Spray.io?</p>
  
  <p>I know that using <code>pathPrefix</code> with <code>path</code> is possible but that is only for two levels?
  With that kind of approach it should look something like:</p>
  
  <pre><code>val route = {
    path("/abc") {
      // complete with response 'abc'
    } ~
    path("/abc/def") {
      // complete with response 'def'
    } ~
    path("/abc/def/ghi") {
      // complete with response 'ghi'
    } ~
    path("/abc/def/ghi/jkl") {
      // complete with response 'jkl'
    }
  }
  </code></pre>
  
  <p>Is there  any way to "nest paths"? I know this is not working but just an idea like:</p>
  
  <pre><code>val route = {
    path("/abc") {
      // complete with response 'abc'
      'sub'path("/def") {
        // complete with response 'def'
        'sub'path("/ghi") {
          // complete with response 'ghi'
          'sub'path("/jkl") {
            // complete with response 'jkl'
          }
        }
      }
    }
  }
  </code></pre>
  
  <p>Or any other proper way of nesting paths?</p>
  
  <p>Best,
  zmeda</p>