|
|
@ -4,6 +4,7 @@ import { interpolate } from '@ghostfolio/common/helper'; |
|
|
import { |
|
|
import { |
|
|
Controller, |
|
|
Controller, |
|
|
Get, |
|
|
Get, |
|
|
|
|
|
OnModuleInit, |
|
|
Param, |
|
|
Param, |
|
|
Res, |
|
|
Res, |
|
|
Version, |
|
|
Version, |
|
|
@ -14,12 +15,14 @@ import { readFileSync } from 'node:fs'; |
|
|
import { join } from 'node:path'; |
|
|
import { join } from 'node:path'; |
|
|
|
|
|
|
|
|
@Controller('assets') |
|
|
@Controller('assets') |
|
|
export class AssetsController { |
|
|
export class AssetsController implements OnModuleInit { |
|
|
private webManifest = ''; |
|
|
private webManifest = ''; |
|
|
|
|
|
|
|
|
public constructor( |
|
|
public constructor( |
|
|
public readonly configurationService: ConfigurationService |
|
|
public readonly configurationService: ConfigurationService |
|
|
) { |
|
|
) {} |
|
|
|
|
|
|
|
|
|
|
|
public onModuleInit() { |
|
|
try { |
|
|
try { |
|
|
this.webManifest = readFileSync( |
|
|
this.webManifest = readFileSync( |
|
|
join(__dirname, 'assets', 'site.webmanifest'), |
|
|
join(__dirname, 'assets', 'site.webmanifest'), |
|
|
|