|
@@ -13,7 +13,7 @@ object JsonResponse {
|
|
trait JsonHandler {
|
|
trait JsonHandler {
|
|
import akka.http.scaladsl.marshallers.sprayjson.SprayJsonSupport._
|
|
import akka.http.scaladsl.marshallers.sprayjson.SprayJsonSupport._
|
|
|
|
|
|
- lazy val jsonResponse = JsonResponse("Hello, World!") // domain object
|
|
|
|
|
|
+ def jsonResponse = JsonResponse("Hello, World!") // domain object
|
|
|
|
|
|
def jsonEndpoint =
|
|
def jsonEndpoint =
|
|
get {
|
|
get {
|