pcs/fix-routing-of-web-ui-manif...

31 lines
936 B
Diff

From 3f1bc69cc8394f2748d50b7c4e1d5fc57d825246 Mon Sep 17 00:00:00 2001
From: Ivan Devat <idevat@redhat.com>
Date: Thu, 23 Nov 2023 09:38:45 +0100
Subject: [PATCH] fix routing of web-ui manifest*.json files
---
pcs/daemon/app/ui.py | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/pcs/daemon/app/ui.py b/pcs/daemon/app/ui.py
index eaf6f54f..f375806d 100644
--- a/pcs/daemon/app/ui.py
+++ b/pcs/daemon/app/ui.py
@@ -127,7 +127,12 @@ def get_routes(
return [
(f"{url_prefix}static/(.*)", StaticFileMayBe, static_path("static")),
- (f"{url_prefix}manifest.json", StaticFileMayBe, static_path()),
+ (f"{url_prefix}(manifest\\.json)", StaticFileMayBe, static_path()),
+ (
+ f"{url_prefix}(manifest_test_marks\\.json)",
+ StaticFileMayBe,
+ static_path(),
+ ),
(
f"{url_prefix}login",
Login,
--
2.41.0