From 91e1911c6415df167fb07467103a77989cf8692f Mon Sep 17 00:00:00 2001 From: Jan Machacek Date: Fri, 14 Dec 2012 15:57:17 +0000 Subject: [PATCH] Explanatory notes --- .../akkapatterns/api/customer.scala | 21 ------------------- 1 file changed, 21 deletions(-) diff --git a/sbt/src/main/scala/org/cakesolutions/akkapatterns/api/customer.scala b/sbt/src/main/scala/org/cakesolutions/akkapatterns/api/customer.scala index 86b853d..d7c6c48 100644 --- a/sbt/src/main/scala/org/cakesolutions/akkapatterns/api/customer.scala +++ b/sbt/src/main/scala/org/cakesolutions/akkapatterns/api/customer.scala @@ -34,25 +34,4 @@ class CustomerService(implicit val actorSystem: ActorSystem) extends Directives } } } - /* - path("customers" / JavaUUID) { id => - get { - complete { - (customerActor ? Get(id)).mapTo[Option[Customer]] - } - } - } ~ - path("customers") { - get { - complete { - (customerActor ? FindAll()).mapTo[List[Customer]] - } - } ~ - post { - entity(as[RegisterCustomer]) { rc => - complete((customerActor ? rc).mapTo[Either[NotRegisteredCustomer, RegisteredCustomer]]) - } - } - } - */ }