Move API to dedicated file, and reduce download size

This commit is contained in:
rubenwardy
2018-06-15 22:57:43 +01:00
parent 87af23248e
commit cfa7654efc
4 changed files with 113 additions and 58 deletions

View File

@@ -51,7 +51,8 @@ def home_page():
packages = query.order_by(db.desc(Package.created_at)).limit(15).all()
return render_template("index.html", packages=packages, count=count)
from . import users, githublogin, packages, sass, tasks, admin, notifications, tagseditor, meta, thumbnails, threads
from . import users, githublogin, packages, meta, threads, api
from . import sass, tasks, admin, notifications, tagseditor, thumbnails
@menu.register_menu(app, ".help", "Help", order=19, endpoint_arguments_constructor=lambda: { 'path': 'help' })
@app.route('/<path:path>/')