Commit 048fe2a5 authored by nanamicat's avatar nanamicat

fix

parent d6856a46
......@@ -13,8 +13,8 @@ export class ApiService {
}
async init() {
this.connections = await firstValueFrom(this.http.get<Record<number, Record<number, Connection>>>('http://10.198.0.7:500/api/connections'));
this.routers = await firstValueFrom(this.http.get<RouterStatus[]>('http://10.198.0.7:500/api/routers'));
this.connections = await firstValueFrom(this.http.get<Record<number, Record<number, Connection>>>('http://10.198.0.49:500/api/connections'));
this.routers = await firstValueFrom(this.http.get<RouterStatus[]>('http://10.198.0.49:500/api/routers'));
console.log(
......@@ -36,7 +36,7 @@ export class ApiService {
state() {
return timer(0, 1000).pipe(
mergeMap(() => this.http.get<RouterStatus[]>('http://10.198.0.7:500/api/state'))
mergeMap(() => this.http.get<RouterStatus[]>('http://10.198.0.49:500/api/state'))
// map((routers) => routers.map(r => ));
);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment