diff --git a/flask_company_data.py b/flask_company_data.py index dd042c4..1e398a7 100644 --- a/flask_company_data.py +++ b/flask_company_data.py @@ -150,9 +150,9 @@ def check_polish_wl(nip: str): } -@app.get("/") -def index(): - return render_template("company_data.html") +@app.get("/company_data/") +def index(country): + return render_template("company_data.html", country=country) @app.get("/api/company_lookup") diff --git a/templates/company_data.html b/templates/company_data.html index d40dab9..fb4b8fb 100644 --- a/templates/company_data.html +++ b/templates/company_data.html @@ -14,9 +14,9 @@