diff options
| author | rubenwardy <rw@rubenwardy.com> | 2018-06-15 22:57:43 +0100 |
|---|---|---|
| committer | rubenwardy <rw@rubenwardy.com> | 2018-06-15 22:57:43 +0100 |
| commit | cfa7654efc7472828a1a26dd44433dab569fc2ec (patch) | |
| tree | 1a22adb1b0726b9a03249dfebcbcad02b42b3166 /app/views/__init__.py | |
| parent | 87af23248ecca4d7e7808e013531a05d349673e6 (diff) | |
| download | cheatdb-cfa7654efc7472828a1a26dd44433dab569fc2ec.tar.xz | |
Move API to dedicated file, and reduce download size
Diffstat (limited to 'app/views/__init__.py')
| -rw-r--r-- | app/views/__init__.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/views/__init__.py b/app/views/__init__.py index 5257675..2001a90 100644 --- a/app/views/__init__.py +++ b/app/views/__init__.py @@ -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>/') |
