Skip to content

Commit

Permalink
Added build version to project route
Browse files Browse the repository at this point in the history
  • Loading branch information
acunniffe committed Aug 28, 2018
1 parent 72871c5 commit baf9ff8
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import akka.http.scaladsl.unmarshalling.Unmarshal
import scala.concurrent.ExecutionContext
import akka.http.scaladsl.server.Directives._
import akka.http.scaladsl.server.{Route, StandardRoute}
import com.opticdev.common.SchemaRef
import com.opticdev.common.{BuildInfo, SchemaRef}
import com.opticdev.server.http.HTTPResponse
import com.opticdev.server.state.ProjectsManager
import play.api.libs.json.{JsArray, JsValue}
Expand All @@ -34,7 +34,12 @@ class ProjectRoute(implicit executionContext: ExecutionContext, projectsManager:
complete(getKnowledgeGraph(projectName))
}
}
}
} ~
path("build-version") {
get {
complete(BuildInfo.currentOpticVersion)
}
}


def getProject(projectName: String) : HTTPResponse = {
Expand Down

0 comments on commit baf9ff8

Please sign in to comment.