mirror of
https://github.com/crystelf/crystelf-core.git
synced 2025-10-14 05:19:19 +00:00
nest初始化
feat:配置模块 feat:路径模块
This commit is contained in:
parent
4100b4f0aa
commit
3e3f8029e6
@ -1,7 +1,7 @@
|
||||
import { Injectable } from '@nestjs/common';
|
||||
import * as path from 'path';
|
||||
import * as fs from 'fs';
|
||||
import { ConfigService } from '../../config/config.service';
|
||||
import { AppConfigService } from '../../config/config.service';
|
||||
import { Logger } from '@nestjs/common';
|
||||
|
||||
@Injectable()
|
||||
@ -9,7 +9,7 @@ export class PathService {
|
||||
private readonly baseDir: string;
|
||||
private readonly logger = new Logger(PathService.name);
|
||||
|
||||
constructor(private readonly configService: ConfigService) {
|
||||
constructor(private readonly configService: AppConfigService) {
|
||||
this.baseDir = path.join(__dirname, '../../..');
|
||||
this.initializePaths();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user