Fix trailing slash routes for artery/atlas/station
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
@@ -80,6 +80,7 @@ def health():
|
||||
|
||||
|
||||
@app.get("/artery", response_class=HTMLResponse)
|
||||
@app.get("/artery/", response_class=HTMLResponse)
|
||||
def artery_index(request: Request):
|
||||
"""Artery landing page."""
|
||||
html_path = SPR_ROOT / "artery" / "index.html"
|
||||
@@ -144,6 +145,7 @@ def artery_route(path: str):
|
||||
|
||||
|
||||
@app.get("/atlas", response_class=HTMLResponse)
|
||||
@app.get("/atlas/", response_class=HTMLResponse)
|
||||
def atlas_index(request: Request):
|
||||
"""Atlas landing page."""
|
||||
html_path = SPR_ROOT / "atlas" / "index.html"
|
||||
@@ -184,6 +186,7 @@ def atlas_route(path: str):
|
||||
|
||||
|
||||
@app.get("/station", response_class=HTMLResponse)
|
||||
@app.get("/station/", response_class=HTMLResponse)
|
||||
def station_index(request: Request):
|
||||
"""Station landing page."""
|
||||
html_path = SPR_ROOT / "station" / "index.html"
|
||||
|
||||
Reference in New Issue
Block a user