Skip to content

Commit

Permalink
fix(cli): add ./ current fold in startup.service (#1780)
Browse files Browse the repository at this point in the history
  • Loading branch information
cipchk authored Mar 13, 2024
1 parent 5701850 commit 905014b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ export class StartupService {
private router = inject(Router);<% if (i18n) { %>
private i18n = inject<I18NService>(ALAIN_I18N_TOKEN);<% } %>
// If http request allows anonymous access, you need to add `ALLOW_ANONYMOUS`:
// this.httpClient.get('assets/tmp/app-data.json', { context: new HttpContext().set(ALLOW_ANONYMOUS, true) })
private appData$ = this.httpClient.get('assets/tmp/app-data.json').pipe(
// this.httpClient.get('/app', { context: new HttpContext().set(ALLOW_ANONYMOUS, true) })
private appData$ = this.httpClient.get('./assets/tmp/app-data.json').pipe(
catchError((res: NzSafeAny) => {
console.warn(`StartupService.load: Network request failed`, res);
setTimeout(() => this.router.navigateByUrl(`/exception/500`));
Expand Down

0 comments on commit 905014b

Please sign in to comment.