Skip to content

xitrum-framework/xitrum-multimodule-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

See discussion.

Run:

sbt/sbt "project app" fgRun

The project is devided into 2 parts:

  • module1
  • app, depends on module1

When you run app, routes in module1 will be collected (see src/main/scala/module1/Controller1.scala):

GET /
GET /module1

You can also access module1.txt in module1 (see src/main/resources/public/module1/module1.txt):

GET /webjars/module1/1.0-SNAPSHOT/module1.txt

If you add or remove routes in module1, remember to remove routes.cache in app.