mirror of
https://github.com/bitwarden/browser
synced 2025-12-17 08:43:33 +00:00
[AC-2740] Add device-approval to bw serve (#9512)
* Extract bw serve endpoint configuration to a configurator class * Add device-approval endpoints to bw serve
This commit is contained in:
@@ -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() {
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user