Commit aeade81e authored by 神楽坂玲奈's avatar 神楽坂玲奈

fix

parent 06e643a4
Pipeline #16373 passed with stages
in 1 minute and 50 seconds
...@@ -13,8 +13,8 @@ export class ApiService { ...@@ -13,8 +13,8 @@ export class ApiService {
} }
async init() { async init() {
this.connections = await firstValueFrom(this.http.get<Record<number, Record<number, Connection>>>('http://10.198.0.7:500/api/connections')); 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.7:500/api/routers')); this.routers = await firstValueFrom(this.http.get<RouterStatus[]>('http://10.198.0.49:500/api/routers'));
console.log( console.log(
...@@ -36,7 +36,7 @@ export class ApiService { ...@@ -36,7 +36,7 @@ export class ApiService {
state() { state() {
return timer(0, 1000).pipe( 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 => )); // 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