Skip to content

Commit

Permalink
#981 Added first cut of the OmsApi into example code.
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisjstevo committed Nov 21, 2023
1 parent b970f52 commit 84afb30
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions example/main/src/main/scala/org/finos/vuu/SimulMain.scala
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import org.finos.vuu.core.module.vui.VuiStateModule
import org.finos.vuu.net.auth.AlwaysHappyAuthenticator
import org.finos.vuu.net.http.VuuHttp2ServerOptions
import org.finos.vuu.net.{AlwaysHappyLoginValidator, Authenticator, LoggedInTokenValidator}
import org.finos.vuu.order.oms.OmsApi
import org.finos.vuu.state.MemoryBackedVuiStateStore

/*
Expand All @@ -35,6 +36,8 @@ object SimulMain extends App with StrictLogging {
implicit val lifecycle: LifecycleContainer = new LifecycleContainer
implicit val tableDefContainer: TableDefContainer = new TableDefContainer(Map())

val omsApi = OmsApi()

logger.info("[VUU] Starting...")

val store = new MemoryBackedVuiStateStore()
Expand Down Expand Up @@ -82,8 +85,7 @@ object SimulMain extends App with StrictLogging {
.withModule(AuthNModule(authenticator, loginTokenValidator))
.withModule(EditableModule())
.withModule(PermissionModule())
.withModule(BasketModule())

.withModule(BasketModule(omsApi))

val vuuServer = new VuuServer(config)

Expand Down

0 comments on commit 84afb30

Please sign in to comment.