generated from bastian/boilerplate
mvp
This commit is contained in:
@@ -26,6 +26,8 @@ export class AppConfigService {
|
||||
swaggerEnabled: this.nestConfig.getOrThrow('swaggerEnabled', {
|
||||
infer: true,
|
||||
}),
|
||||
documents: this.nestConfig.getOrThrow('documents', { infer: true }),
|
||||
reminders: this.nestConfig.getOrThrow('reminders', { infer: true }),
|
||||
rateLimit: this.nestConfig.getOrThrow('rateLimit', { infer: true }),
|
||||
};
|
||||
}
|
||||
@@ -82,6 +84,14 @@ export class AppConfigService {
|
||||
return this.config.swaggerEnabled;
|
||||
}
|
||||
|
||||
get documents(): AppConfig['documents'] {
|
||||
return this.config.documents;
|
||||
}
|
||||
|
||||
get reminders(): AppConfig['reminders'] {
|
||||
return this.config.reminders;
|
||||
}
|
||||
|
||||
get rateLimit(): AppConfig['rateLimit'] {
|
||||
return this.config.rateLimit;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user