import akka.actor.Actor
import gr.grnet.aquarium.util.Loggable
import net.liftweb.json.JsonAST.JValue
+import net.liftweb.json.{JsonAST, Printer}
/**
*
class AquariumRESTService(_id: String = "spray-root-service", version: String) extends Actor with Loggable {
self.id = _id
- private[this] def jsonResponseOK(body: JValue, pretty: Boolean = false): HttpResponse = {
- HttpResponse(
- 200,
- HttpHeader("Content-type", "application/json;charset=utf-8") :: Nil,
- )
- }
+// private[this] def jsonResponseOK(body: JValue, pretty: Boolean = false): HttpResponse = {
+// HttpResponse(
+// 200,
+// HttpHeader("Content-type", "application/json;charset=utf-8") :: Nil,
+// if(pretty) {
+// Printer.pretty(JsonAST.render(body)).getB
+// } else {
+// bo
+// }
+// )
+// }
protected def receive = {
case RequestContext(HttpRequest(GET, "/", _, _, _), _, responder) =>
responder.complete(index)