blob: 3b7ed99bfda89924522985211cc64eb88f11cb7d (
plain) (
tree)
|
|
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()
}
}
|