Skip to content

Commit

Permalink
[AC-2740] Add device-approval to bw serve (#9512)
Browse files Browse the repository at this point in the history
* Extract bw serve endpoint configuration to a configurator class

* Add device-approval endpoints to bw serve
  • Loading branch information
eliykat authored Jun 13, 2024
1 parent b359300 commit 89aa622
Show file tree
Hide file tree
Showing 14 changed files with 613 additions and 442 deletions.
6 changes: 6 additions & 0 deletions apps/cli/src/bw.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import { program } from "commander";

import { OssServeConfigurator } from "./oss-serve-configurator";
import { registerOssPrograms } from "./register-oss-programs";
import { ServeProgram } from "./serve.program";
import { ServiceContainer } from "./service-container";

async function main() {
Expand All @@ -9,6 +11,10 @@ async function main() {

await registerOssPrograms(serviceContainer);

// ServeProgram is registered separately so it can be overridden by bit-cli
const serveConfigurator = new OssServeConfigurator(serviceContainer);
new ServeProgram(serviceContainer, serveConfigurator).register();

program.parse(process.argv);
}

Expand Down
Loading

0 comments on commit 89aa622

Please sign in to comment.