mirror of
https://github.com/bitwarden/browser
synced 2025-12-22 03:03:43 +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:
@@ -6,6 +6,8 @@ import { ListResponse } from "@bitwarden/cli/models/response/list.response";
|
||||
import { OrganizationService } from "@bitwarden/common/admin-console/abstractions/organization/organization.service.abstraction";
|
||||
import { Utils } from "@bitwarden/common/platform/misc/utils";
|
||||
|
||||
import { ServiceContainer } from "../../service-container";
|
||||
|
||||
import { PendingAuthRequestResponse } from "./pending-auth-request.response";
|
||||
|
||||
export class ListCommand {
|
||||
@@ -39,4 +41,11 @@ export class ListCommand {
|
||||
return Response.error(e);
|
||||
}
|
||||
}
|
||||
|
||||
static create(serviceContainer: ServiceContainer) {
|
||||
return new ListCommand(
|
||||
serviceContainer.organizationAuthRequestService,
|
||||
serviceContainer.organizationService,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user