title: Play Framework 2.2.x multiple route files
body: <p>I've read through the Play! For Scala book's section on modules and I can't seem to figure out how to import the routes from a referenced module. I've set up my module as a library dependency in my build.sbt file and I've tried to import the route in my routes file like so</p>
  
  <p>build.sbt:</p>
  
  <pre><code>libraryDependencies ++= Seq(
    "org.webjars" %% "webjars-play" % "2.2.0", 
    "default" % "mymodule" % "1.0-SNAPSHOT"
  </code></pre>
  
  <p>routes</p>
  
  <pre><code>...
  -&gt; /api/mymodule mymodule.routes
  </code></pre>
  
  <p>mymodule contains a routing file called mymodule.routes. I don't really see how this could work however I don't fully understand what's going on so I'm not sure what else to try.</p>
  
  <p>I've also tried abandoning the routes file in my referenced module and sticking a new routing file in my conf directory called mymodule.routes and that doesn't work either. Any help would be appreciated. Thanks!</p>