Commit ac05bbe7 authored by shadMod's avatar shadMod 💬

added News() in app and register news paths

parent 0f156ff0
...@@ -28,6 +28,7 @@ from . import navbar ...@@ -28,6 +28,7 @@ from . import navbar
from . import pages from . import pages
from . import redirects from . import redirects
from . import utils from . import utils
from .src.news import news
def create_app(data_path, debug=False): def create_app(data_path, debug=False):
...@@ -57,9 +58,11 @@ def create_app(data_path, debug=False): ...@@ -57,9 +58,11 @@ def create_app(data_path, debug=False):
utils.prepare_app(app) utils.prepare_app(app)
app.news = news.News()
app.download = download.Downloads(data_path) app.download = download.Downloads(data_path)
app.register_blueprint(redirects.prepare_blueprint(app)) app.register_blueprint(redirects.prepare_blueprint(app))
app.register_blueprint(app.news.prepare_blueprint(app), url_prefix="/news")
app.register_blueprint(app.download.prepare_blueprint(app), url_prefix="/download") app.register_blueprint(app.download.prepare_blueprint(app), url_prefix="/download")
app.register_blueprint(actions.prepare_blueprint(app), url_prefix="/+actions") app.register_blueprint(actions.prepare_blueprint(app), url_prefix="/+actions")
app.register_blueprint(auth.prepare_blueprint(app), url_prefix="/+auth") app.register_blueprint(auth.prepare_blueprint(app), url_prefix="/+auth")
......
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