add recent searches module

This commit is contained in:
Jurgis Sakalauskas
2022-12-09 18:09:04 +02:00
parent 7e5fa1fb2a
commit cd4ba620de
9 changed files with 94 additions and 11 deletions
+5 -1
View File
@@ -5,7 +5,7 @@ import { join } from 'path';
env.config();
class ConfigService {
export class ConfigService {
public getEnv(key: string): any {
return process.env[key];
}
@@ -32,6 +32,10 @@ class ConfigService {
return join(this.getRootPath(), this.getEnv('STATIC_SERVE_FOLDER'));
}
public getRecentSearchesFolder(): string {
return join(this.getRootPath(), this.getEnv('STATIC_SERVE_FOLDER'));
}
private getRootPath(): string {
return join(__dirname, '../..');
}