src/admin/admin.service.ts
Methods |
| Async getConfig |
getConfig()
|
|
Defined in src/admin/admin.service.ts:7
|
|
Returns :
Promise<Record | null>
|
| Async getTheme |
getTheme()
|
|
Defined in src/admin/admin.service.ts:11
|
|
Returns :
Promise<Record | null>
|
import { Injectable } from "@nestjs/common";
import config from "../config/frontend.config.json";
import theme from "../config/frontend.theme.json";
@Injectable()
export class AdminService {
async getConfig(): Promise<Record<string, unknown> | null> {
return config;
}
async getTheme(): Promise<Record<string, unknown> | null> {
return theme;
}
}