mirror of
https://github.com/sakaljurgis/kodi-api-server.git
synced 2026-07-09 04:47:41 +00:00
add recent searches module
This commit is contained in:
@@ -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, '../..');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user