aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
Diffstat (limited to 'src/main')
-rw-r--r--src/main/scala/com/drivergrp/core/rest.scala4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/scala/com/drivergrp/core/rest.scala b/src/main/scala/com/drivergrp/core/rest.scala
index b7edc5b..914e1ec 100644
--- a/src/main/scala/com/drivergrp/core/rest.scala
+++ b/src/main/scala/com/drivergrp/core/rest.scala
@@ -97,12 +97,12 @@ object rest {
}
}
- def TimeInPath[T]: PathMatcher1[Time] =
+ def TimeInPath: PathMatcher1[Time] =
PathMatcher("""[+-]?\d*""".r) flatMap { string ⇒
try Some(Time(string.toLong)) catch { case _: IllegalArgumentException ⇒ None }
}
- implicit def timeFormat[T] = new RootJsonFormat[Time] {
+ implicit val timeFormat = new RootJsonFormat[Time] {
def write(time: Time) = JsObject("timestamp" -> JsNumber(time.millis))
def read(value: JsValue): Time = value match {