phase-2: add shared platform interfaces and type contracts
This commit is contained in:
12
src/app/shared/models/config/api-endpoints.model.ts
Normal file
12
src/app/shared/models/config/api-endpoints.model.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
export interface ApiEndpointConfig {
|
||||
path: string;
|
||||
method: 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE';
|
||||
timeoutMs?: number;
|
||||
}
|
||||
|
||||
export interface ApiEndpointsConfig {
|
||||
bootstrap: ApiEndpointConfig;
|
||||
website: Record<string, ApiEndpointConfig>;
|
||||
builder: Record<string, ApiEndpointConfig>;
|
||||
backoffice: Record<string, ApiEndpointConfig>;
|
||||
}
|
||||
Reference in New Issue
Block a user