add : icons module
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
import { ConfigService } from "@nestjs/config";
|
||||
|
||||
export function iconsConfig() {
|
||||
return {
|
||||
inject: [ConfigService],
|
||||
useFactory: async (configService: ConfigService) => {
|
||||
return {
|
||||
baseUrl: configService.getOrThrow<string>("DMENU_BACKEND_URL"),
|
||||
username: configService.getOrThrow<string>("DMENU_USERNAME"),
|
||||
password: configService.getOrThrow<string>("DMENU_PASSWORD"),
|
||||
};
|
||||
},
|
||||
};
|
||||
}
|
||||
|
||||
export interface IIconsConfig {
|
||||
baseUrl: string;
|
||||
username: string;
|
||||
password: string;
|
||||
}
|
||||
Reference in New Issue
Block a user