2025-02-28 05:40:32 +01:00
|
|
|
package lu.foyer
|
|
|
|
|
package clients
|
|
|
|
|
|
|
|
|
|
import zio.*
|
|
|
|
|
import zio.Console.*
|
|
|
|
|
import zio.http.*
|
|
|
|
|
import zio.http.codec.*
|
|
|
|
|
import zio.http.codec.PathCodec.path
|
|
|
|
|
import zio.http.endpoint.*
|
|
|
|
|
import zio.schema.*
|
|
|
|
|
|
|
|
|
|
import java.net.URI
|
|
|
|
|
import java.time.LocalDate
|
|
|
|
|
import java.util.UUID
|
|
|
|
|
|
2025-03-03 00:24:13 +01:00
|
|
|
class ClientController(
|
|
|
|
|
override val commandEngine: CommandEngine[ClientCommand, ClientEvent, ClientState])
|
|
|
|
|
extends CommandEngineController[ClientCommand, ClientEvent, ClientState](
|
|
|
|
|
"api:example:insurance",
|
|
|
|
|
"client"
|
2025-02-28 05:40:32 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
object ClientController:
|
2025-03-03 00:24:13 +01:00
|
|
|
val layer = ZLayer.fromFunction(ClientController.apply)
|