backend-{plugin,app}-api: added addAuthPolicy to HttpRouterService + implementation

Co-authored-by: Fredrik Adelöw <freben@gmail.com>
Co-authored-by: Carl-Erik Bergström <cbergstrom@spotify.com>
Co-authored-by: blam <ben@blam.sh>
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Patrik Oldsberg
2024-02-09 13:04:48 +01:00
parent 746701e094
commit 344a82b4e5
7 changed files with 118 additions and 5 deletions
@@ -182,6 +182,7 @@ export namespace mockServices {
export const factory = httpRouterServiceFactory;
export const mock = simpleMock(coreServices.httpRouter, () => ({
use: jest.fn(),
addAuthPolicy: jest.fn(),
}));
}
export namespace rootHttpRouter {