aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/core/routing/server-config-resolver.service.ts
blob: 3b7ed99bfda89924522985211cc64eb88f11cb7d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
import { Injectable } from '@angular/core'
import { Resolve } from '@angular/router'
import { ServerService } from '@app/core/server'
import { ServerConfig } from '@shared/models'

@Injectable()
export class ServerConfigResolver implements Resolve<ServerConfig> {
  constructor (private server: ServerService) {}

  resolve () {
    return this.server.getConfig()
  }
}