feat: register threads blueprint
This commit is contained in:
parent
b8b8c91cd5
commit
f90058dfbe
2 changed files with 6 additions and 0 deletions
4
.gitignore
vendored
4
.gitignore
vendored
|
@ -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
2
web.py
|
@ -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():
|
||||||
|
|
Loading…
Reference in a new issue