mirror of
https://github.com/safing/portmaster
synced 2025-09-02 10:39:22 +00:00
[desktop] Fix: Failed to display "News" on the dashboard
This commit is contained in:
parent
453a8ff0ba
commit
15bd31adb5
2 changed files with 3 additions and 3 deletions
|
@ -41,7 +41,7 @@ interface News {
|
||||||
cards: NewsCard[];
|
cards: NewsCard[];
|
||||||
}
|
}
|
||||||
|
|
||||||
const newsResourceIdentifier = "all/intel/portmaster/news.yaml"
|
const newsResourceIdentifier = "intel/news.yaml"
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-dashboard',
|
selector: 'app-dashboard',
|
||||||
|
|
|
@ -159,8 +159,8 @@ func registerAPIEndpoints() error {
|
||||||
|
|
||||||
if err := api.RegisterEndpoint(api.Endpoint{
|
if err := api.RegisterEndpoint(api.Endpoint{
|
||||||
Name: "Get Resource",
|
Name: "Get Resource",
|
||||||
Description: "Returns the requested resource from the udpate system",
|
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}}`,
|
Path: `updates/get/{artifact_path:[A-Za-z0-9/\.\-_]{1,255}}/{artifact_name:[A-Za-z0-9\.\-_]{1,255}}`,
|
||||||
Read: api.PermitUser,
|
Read: api.PermitUser,
|
||||||
ReadMethod: http.MethodGet,
|
ReadMethod: http.MethodGet,
|
||||||
HandlerFunc: getUpdateResource,
|
HandlerFunc: getUpdateResource,
|
||||||
|
|
Loading…
Add table
Reference in a new issue