diff --git a/app.py b/app.py index dab939f..48f66f2 100644 --- a/app.py +++ b/app.py @@ -120,11 +120,6 @@ def home(): def documentation(): return render_template("documentation.html") -@ app.route("/dashboard", methods=["GET"]) -@login_required -def dashboard(): - return redirect(url_for("home.index")) - def _generate_script_from_natural_language(natural_query): """Generates a Javascript function from natural language using Gemini REST API.""" gemni_model = os.environ.get("GEMINI_MODEL", "gemini-1.5-flash") @@ -440,7 +435,7 @@ def signup(): user = User(id=str(user_data['id']), username=user_data['username'], password_hash=user_data['password_hash'], created_at=user_data['created_at']) login_user(user) - return redirect(url_for('dashboard')) + return redirect(url_for('home.index')) @app.route("/logout") @login_required diff --git a/templates/documentation.html b/templates/documentation.html index 373cc76..a51489c 100644 --- a/templates/documentation.html +++ b/templates/documentation.html @@ -61,7 +61,7 @@ href="{{ url_for('documentation') }}">Documentation - Login diff --git a/templates/home.html b/templates/home.html index c2b8785..f34c2e0 100644 --- a/templates/home.html +++ b/templates/home.html @@ -88,7 +88,7 @@ href="#">About - Login