File tree Expand file tree Collapse file tree 6 files changed +14
-16
lines changed Expand file tree Collapse file tree 6 files changed +14
-16
lines changed Original file line number Diff line number Diff line change 1+ from flask import Blueprint , render_template
2+
3+
4+ site_routes = Blueprint ('site_routes' , __name__ )
5+
6+
7+ @site_routes .route ('/' )
8+ def index ():
9+ return render_template ('site/index.html' )
Original file line number Diff line number Diff line change 1- from system .routes import system_blueprint
2-
3-
41def register_blueprints (app ):
52 with app .app_context ():
6- app .register_blueprint (system_blueprint )
7-
3+ from site .routes import site_routes
84 from telegram_bot .routes import telegram_blueprint
5+
6+ app .register_blueprint (site_routes )
97 app .register_blueprint (telegram_blueprint , url_prefix = '/telegram' )
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1515 {% block navbar %}
1616 < nav class ="navbar navbar-expand-lg navbar-dark bg-dark ">
1717 < div class ="container ">
18- < a class ="navbar-brand " href ="{{ url_for('system_routes .index') }} ">
18+ < a class ="navbar-brand " href ="{{ url_for('site_routes .index') }} ">
1919 Mathematician Bot
2020 </ a >
2121
2222 < div class ="collapse navbar-collapse " id ="base-navbar ">
2323 < ul class ="navbar-nav mr-auto ">
2424 < li class ="nav-item ">
25- < a class ="nav-link " href ="{{ url_for('system_routes .index') }} ">
25+ < a class ="nav-link " href ="{{ url_for('site_routes .index') }} ">
2626 Web
2727 </ a >
2828 </ li >
File renamed without changes.
You can’t perform that action at this time.
0 commit comments