mirror of
https://github.com/sakaljurgis/kodi-api-server.git
synced 2026-07-08 20:37:41 +00:00
start local fs video files scanner service
This commit is contained in:
@@ -2,12 +2,14 @@ import * as env from 'dotenv';
|
||||
import { TypeOrmModuleOptions } from '@nestjs/typeorm';
|
||||
import { TypeOrmConfig } from './type-orm.config';
|
||||
import { PathsConfig } from './paths.config';
|
||||
import { VideoFilesConfig } from './video-files.config';
|
||||
|
||||
env.config();
|
||||
|
||||
export class ConfigService {
|
||||
private typeOrmConfig: TypeOrmConfig = new TypeOrmConfig(this);
|
||||
private pathsConfig: PathsConfig = new PathsConfig(this);
|
||||
private videoFilesConfig: VideoFilesConfig = new VideoFilesConfig(this);
|
||||
|
||||
public getEnv(key: string): any {
|
||||
return process.env[key];
|
||||
@@ -26,6 +28,10 @@ export class ConfigService {
|
||||
public getPaths(): PathsConfig {
|
||||
return this.pathsConfig;
|
||||
}
|
||||
|
||||
public getVideoFilesConfig(): VideoFilesConfig {
|
||||
return this.videoFilesConfig;
|
||||
}
|
||||
}
|
||||
|
||||
export const configService = new ConfigService();
|
||||
|
||||
Reference in New Issue
Block a user