Change train route to /admin/train and update navbar link

parent 5676896c
......@@ -74,7 +74,7 @@
<a href="/dashboard" {% if active_page == 'dashboard' %}class="active"{% endif %}>Dashboard</a>
<a href="/analyze" {% if active_page == 'analyze' %}class="active"{% endif %}>Analyze</a>
{% if user.get('role') == 'admin' %}
<a href="/train" {% if active_page == 'train' %}class="active"{% endif %}>Train</a>
<a href="/admin/train" {% if active_page == 'train' %}class="active"{% endif %}>Train</a>
{% endif %}
<a href="/history" {% if active_page == 'history' %}class="active"{% endif %}>History</a>
{% if user.get('role') == 'admin' %}
......
......@@ -289,7 +289,7 @@ def analyze():
server_dir=server_dir,
active_page='analyze')
@app.route('/train', methods=['GET', 'POST'])
@app.route('/admin/train', methods=['GET', 'POST'])
@admin_required
def train():
user = get_current_user_session()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment