feat: register threads blueprint

This commit is contained in:
Ayo Ayco 2024-04-24 11:50:45 +02:00
parent b8b8c91cd5
commit f90058dfbe
2 changed files with 6 additions and 0 deletions

4
.gitignore vendored
View file

@ -1,6 +1,10 @@
# Deployment Unix socket # Deployment Unix socket
*.sock *.sock
# blueprints
threads.py
templates/threads.html
# Temp files # Temp files
*~ *~
*swp *swp

2
web.py
View file

@ -1,8 +1,10 @@
from flask import Flask, send_from_directory from flask import Flask, send_from_directory
from partials import partials from partials import partials
from threads import threads
app = Flask(__name__) app = Flask(__name__)
app.register_blueprint(partials, url_prefix='/p') app.register_blueprint(partials, url_prefix='/p')
app.register_blueprint(threads, url_prefix='/threads')
@app.route('/') @app.route('/')
def home(): def home():