Skip to content

Commit 63ead8a

Browse files
Update app.py
1 parent 64fb255 commit 63ead8a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

App/app.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,22 +34,22 @@
3434
@app.route("/")
3535
async def serve_index():
3636
return await send_from_directory(
37-
os.path.join(app.root_path,"build"), "index.html"
37+
os.path.join(app.root_path,"static"), "index.html"
3838
)
3939

4040

4141
@app.route("/favicon.ico")
4242
async def favicon():
4343
return await send_from_directory(
44-
os.path.join(app.root_path,"build"),
44+
os.path.join(app.root_path,"static"),
4545
"favicon.ico",
4646
mimetype="image/x-icon",
4747
)
4848

4949

5050
# Serve static files (JS, CSS, images, etc.)
5151
@app.route("/static/<path:path>")
52-
async def assets(path):
52+
async def static_files(path):
5353
return await send_from_directory(
5454
os.path.join(app.root_path, "static"), path
5555
)

0 commit comments

Comments
 (0)