Skip to content

Commit

Permalink
Fixed system information not showing on Web UI
Browse files Browse the repository at this point in the history
  • Loading branch information
Sarthak-Biswas committed Mar 4, 2023
1 parent a90468c commit 3cd29c7
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions gui/src/app/dashboard/dashboard.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export class DashboardComponent implements OnInit {
}

getRam() {
const posturl = `${this.apiRoot}ram`;
const posturl = `${this.apiRoot}/ram`;
this.http.post(
posturl,
{
Expand All @@ -74,7 +74,7 @@ export class DashboardComponent implements OnInit {
}

getCpu() {
const posturl = `${this.apiRoot}cpu`;
const posturl = `${this.apiRoot}/cpu`;
this.http.post(
posturl,
{
Expand All @@ -95,7 +95,7 @@ export class DashboardComponent implements OnInit {
}

getSwap() {
const posturl = `${this.apiRoot}swap`;
const posturl = `${this.apiRoot}/swap`;
this.http.post(
posturl,
{
Expand All @@ -116,7 +116,7 @@ export class DashboardComponent implements OnInit {
}

getUptime() {
const posturl = `${this.apiRoot}uptime`;
const posturl = `${this.apiRoot}/uptime`;
this.http.post(
posturl,
{
Expand Down
2 changes: 1 addition & 1 deletion gui/src/app/login/login.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export class LoginComponent implements OnInit {
}

getLogin() {
const posturl = `${this.apiRoot}login`;
const posturl = `${this.apiRoot}/login`;
this.http.post(
posturl,
{
Expand Down
2 changes: 1 addition & 1 deletion gui/src/app/network/network.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export class NetworkComponent implements OnInit {
}

getNetwork() {
const posturl = `${this.apiRoot}netio`;
const posturl = `${this.apiRoot}/netio`;
this.http.post(
posturl,
{
Expand Down
2 changes: 1 addition & 1 deletion gui/src/app/storage/storage.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export class StorageComponent implements OnInit {
}

getStorage() {
const geturl = `${this.apiRoot}hdd`;
const geturl = `${this.apiRoot}/hdd`;
console.log(geturl)
this.http.post(
geturl,
Expand Down

0 comments on commit 3cd29c7

Please sign in to comment.