Skip to content

Commit 8b2cc22

Browse files
authored
fix: fix a 404 error when loading the dashboard (#144)
1 parent 7527c8d commit 8b2cc22

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ dist
77
static
88
.*cache
99
profiling
10+
venv
1011

1112
# coverage stuff
1213
.coverage

aw_server/server.py

+8-3
Original file line numberDiff line numberDiff line change
@@ -35,16 +35,21 @@ def __init__(
3535
storage_method=None,
3636
cors_origins=[],
3737
custom_static=dict(),
38-
*args,
39-
**kwargs
38+
static_folder=static_folder,
39+
static_url_path="",
4040
):
4141
name = "aw-server"
4242
self.json_provider_class = CustomJSONProvider
4343
# only prettyprint JSON if testing (due to perf)
4444
self.json_provider_class.compact = not testing
4545

4646
# Initialize Flask
47-
Flask.__init__(self, name, *args, **kwargs)
47+
Flask.__init__(
48+
self,
49+
name,
50+
static_folder=static_folder,
51+
static_url_path=static_url_path,
52+
)
4853
self.config["HOST"] = host # needed for host-header check
4954
with self.app_context():
5055
_config_cors(cors_origins, testing)

0 commit comments

Comments
 (0)