Skip to content

Commit d68a476

Browse files
site package was added
1 parent 81cedce commit d68a476

File tree

6 files changed

+14
-16
lines changed

6 files changed

+14
-16
lines changed

site/__init__.py

Whitespace-only changes.

site/routes.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
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')

system/blueprints.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
1-
from system.routes import system_blueprint
2-
3-
41
def 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')

system/routes.py

Lines changed: 0 additions & 9 deletions
This file was deleted.

system/templates/base.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,14 @@
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.

0 commit comments

Comments
 (0)