Skip to content

Commit ed63ac0

Browse files
committed
updated common-utils
1 parent 0fc6fc0 commit ed63ac0

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

modules/swagger-play2-utils/app/controllers/HealthController.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ object HealthController extends Controller {
2424
try {
2525
val health: Health = HealthSnapshot.get()
2626

27-
new SimpleResult(header = ResponseHeader(200), body = play.api.libs.iteratee.Enumerator(ScalaJsonUtil.mapper.writeValueAsBytes(health))).as("application/json")
27+
new Result(header = ResponseHeader(200), body = play.api.libs.iteratee.Enumerator(ScalaJsonUtil.mapper.writeValueAsBytes(health))).as("application/json")
2828
.withHeaders(AccessControlAllowOrigin)
2929
} catch {
3030
case e: Exception => LOGGER.error("Error occurred", e); InternalServerError //Error(e.getMessage)
@@ -36,7 +36,7 @@ object HealthController extends Controller {
3636
produces = "text/plain", httpMethod = "GET", nickname = "ping")
3737
def ping() = Action { request =>
3838
try {
39-
new SimpleResult(header = ResponseHeader(200), body = play.api.libs.iteratee.Enumerator("OK".getBytes)).as("text/plain")
39+
new Result(header = ResponseHeader(200), body = play.api.libs.iteratee.Enumerator("OK".getBytes)).as("text/plain")
4040
.withHeaders(AccessControlAllowOrigin)
4141
} catch {
4242
case e: Exception => LOGGER.error("Error occurred", e); InternalServerError //Error(e.getMessage)

modules/swagger-play2-utils/project/Build.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ object ApplicationBuild extends Build {
1212

1313
val appDependencies: Seq[sbt.ModuleID] = Seq(
1414
"org.slf4j" % "slf4j-api" % "1.6.4",
15-
"com.wordnik" % "swagger-core_2.10" % "1.3.8-SNAPSHOT",
16-
"com.wordnik" % "common-utils_2.10.0" % "1.1.5",
15+
"com.wordnik" %% "swagger-core" % "1.3.8-SNAPSHOT",
16+
"com.wordnik" %% "common-utils" % "1.3.0-SNAPSHOT",
1717
"javax.ws.rs" % "jsr311-api" % "1.1.1")
1818

1919
val main = Project(appName, file(".")).enablePlugins(PlayScala).settings(

0 commit comments

Comments
 (0)