Commit c7b2ff86 authored by kurzum's avatar kurzum
Browse files
parents 7c45a62b a8cabe08
......@@ -13,10 +13,15 @@ resolvers += Classpaths.typesafeReleases
libraryDependencies ++= Seq(
"org.scalatra" %% "scalatra" % ScalatraVersion,
"org.scalatra" %% "scalatra-scalatest" % ScalatraVersion % "test",
"org.scalatra" %% "scalatra-json" % "2.7.0",
"org.json4s" %% "json4s-jackson" % "3.6.9",
"ch.qos.logback" % "logback-classic" % "1.2.3" % "runtime",
"org.eclipse.jetty" % "jetty-webapp" % "9.4.28.v20200408" % "container",
"javax.servlet" % "javax.servlet-api" % "3.1.0" % "provided"
"javax.servlet" % "javax.servlet-api" % "3.1.0" % "provided",
)
// https://mvnrepository.com/artifact/org.apache.jena/jena-arq
libraryDependencies += "org.apache.jena" % "jena-arq" % "3.15.0"
enablePlugins(SbtTwirl)
enablePlugins(ScalatraPlugin)
......@@ -4,7 +4,7 @@ import javax.servlet.ServletContext
class ScalatraBootstrap extends LifeCycle {
override def init(context: ServletContext) {
context.mount(new StaticHtmlServlet, "/*")
context.mount(new DataApiServlet, "/api/*")
context.mount(new StaticHtmlServlet, "/*")
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment