Added the index page which is used while in development.

This commit is contained in:
takezoe
2013-05-03 14:04:31 +09:00
parent 8fa1b36aa0
commit 0c3a301f24
8 changed files with 35 additions and 13 deletions

View File

@@ -13,11 +13,11 @@ abstract class ControllerBase extends ScalatraFilter with ClientSideValidationFo
implicit val jsonFormats = DefaultFormats
implicit def context: Context = Context(servletContext.getContextPath)
implicit def context: Context = Context(servletContext.getContextPath, LoginUser)
// TODO get from session
val LoginUser = System.getProperty("user.name")
private val LoginUser = System.getProperty("user.name")
}
case class Context(path: String)
case class Context(path: String, loginUser: String)