Move API to dedicated file, and reduce download size
This commit is contained in:
@@ -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>/')
|
||||
|
||||
Reference in New Issue
Block a user