10 lines
484 B
TypeScript
10 lines
484 B
TypeScript
|
|
import { InjectionToken, inject } from '@angular/core';
|
||
|
|
import { AdminUsersGateway } from './admin-users-gateway.interface';
|
||
|
|
import { AdminUsersLocalGateway } from './admin-users-local.gateway';
|
||
|
|
|
||
|
|
/** Swap point for a real Users backend - see BACKEND-API-REFERENCE.md §8 (no seam existed before this token). */
|
||
|
|
export const ADMIN_USERS_GATEWAY = new InjectionToken<AdminUsersGateway>('ADMIN_USERS_GATEWAY', {
|
||
|
|
providedIn: 'root',
|
||
|
|
factory: () => inject(AdminUsersLocalGateway),
|
||
|
|
});
|