Remove dashboard route
This commit is contained in:
7
app.py
7
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
|
||||
|
||||
Reference in New Issue
Block a user