From 15bd31adb58b21ca127e06de7b49dc2a5b61a397 Mon Sep 17 00:00:00 2001 From: Alexandr Stelnykovych Date: Fri, 21 Mar 2025 13:38:10 +0200 Subject: [PATCH] [desktop] Fix: Failed to display "News" on the dashboard --- .../angular/src/app/pages/dashboard/dashboard.component.ts | 2 +- service/core/api.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/desktop/angular/src/app/pages/dashboard/dashboard.component.ts b/desktop/angular/src/app/pages/dashboard/dashboard.component.ts index a07893aa..a77317e4 100644 --- a/desktop/angular/src/app/pages/dashboard/dashboard.component.ts +++ b/desktop/angular/src/app/pages/dashboard/dashboard.component.ts @@ -41,7 +41,7 @@ interface News { cards: NewsCard[]; } -const newsResourceIdentifier = "all/intel/portmaster/news.yaml" +const newsResourceIdentifier = "intel/news.yaml" @Component({ selector: 'app-dashboard', diff --git a/service/core/api.go b/service/core/api.go index 6f419ced..b008097b 100644 --- a/service/core/api.go +++ b/service/core/api.go @@ -159,8 +159,8 @@ func registerAPIEndpoints() error { if err := api.RegisterEndpoint(api.Endpoint{ Name: "Get Resource", - Description: "Returns the requested resource from the udpate system", - Path: `updates/get/?{artifact_path:[A-Za-z0-9/\.\-_]{1,255}}/{artifact_name:[A-Za-z0-9\.\-_]{1,255}}`, + Description: "Returns the requested resource from the update system", + Path: `updates/get/{artifact_path:[A-Za-z0-9/\.\-_]{1,255}}/{artifact_name:[A-Za-z0-9\.\-_]{1,255}}`, Read: api.PermitUser, ReadMethod: http.MethodGet, HandlerFunc: getUpdateResource,