mirror of
https://github.com/morten-olsen/homelab-operator.git
synced 2026-02-08 01:36:28 +01:00
22 lines
483 B
TypeScript
22 lines
483 B
TypeScript
import type { Services } from '../../utils/service.ts';
|
|
|
|
import type { AuthentikServerInfo } from './authentik.types.ts';
|
|
import { AuthentikInstance } from './authentik.instance.ts';
|
|
|
|
class AuthentikService {
|
|
#services: Services;
|
|
|
|
constructor(services: Services) {
|
|
this.#services = services;
|
|
}
|
|
|
|
public get = async (info: AuthentikServerInfo) => {
|
|
return new AuthentikInstance({
|
|
info,
|
|
services: this.#services,
|
|
});
|
|
};
|
|
}
|
|
|
|
export { AuthentikService };
|