add recent searches module

This commit is contained in:
Jurgis Sakalauskas committed 2022-12-09 18:09:04 +02:00
1 parent 7e5fa1fb2a
commit cd4ba620de
9 files changed
+94 -11

No files matched your search

+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, '../..');
}