diff --git a/app.py b/app.py index 9506b48c0..20b516c53 100644 --- a/app.py +++ b/app.py @@ -2,7 +2,7 @@ import sys import io import os -import views +import route from flask import Flask from datetime import timedelta @@ -13,18 +13,18 @@ app.debug = True DEFAULT_MODULES = ( - (views.dashboard, "/"), - (views.site, "/site"), - (views.files, "/files"), - (views.soft, "/soft"), - (views.config, "/config"), - (views.plugins, "/plugins"), - (views.task, "/task"), - (views.system, "/system"), - (views.database, "/database"), - (views.crontab, "/crontab"), - (views.firewall, "/firewall"), - (views.control, "/control"), + (route.dashboard, "/"), + (route.site, "/site"), + (route.files, "/files"), + (route.soft, "/soft"), + (route.config, "/config"), + (route.plugins, "/plugins"), + (route.task, "/task"), + (route.system, "/system"), + (route.database, "/database"), + (route.crontab, "/crontab"), + (route.firewall, "/firewall"), + (route.control, "/control"), ) import time diff --git a/views/config.py b/route/config.py similarity index 100% rename from views/config.py rename to route/config.py diff --git a/views/control.py b/route/control.py similarity index 100% rename from views/control.py rename to route/control.py diff --git a/views/crontab.py b/route/crontab.py similarity index 100% rename from views/crontab.py rename to route/crontab.py diff --git a/views/dashboard.py b/route/dashboard.py similarity index 100% rename from views/dashboard.py rename to route/dashboard.py diff --git a/views/database.py b/route/database.py similarity index 100% rename from views/database.py rename to route/database.py diff --git a/views/files.py b/route/files.py similarity index 100% rename from views/files.py rename to route/files.py diff --git a/views/firewall.py b/route/firewall.py similarity index 100% rename from views/firewall.py rename to route/firewall.py diff --git a/views/plugins.py b/route/plugins.py similarity index 100% rename from views/plugins.py rename to route/plugins.py diff --git a/views/site.py b/route/site.py similarity index 100% rename from views/site.py rename to route/site.py diff --git a/views/soft.py b/route/soft.py similarity index 100% rename from views/soft.py rename to route/soft.py diff --git a/views/system.py b/route/system.py similarity index 100% rename from views/system.py rename to route/system.py diff --git a/views/task.py b/route/task.py similarity index 100% rename from views/task.py rename to route/task.py diff --git a/views/__init__.py b/views/__init__.py deleted file mode 100644 index 191748522..000000000 --- a/views/__init__.py +++ /dev/null @@ -1,13 +0,0 @@ - -from dashboard import * -from site import * -from files import * -from soft import * -from config import * -from task import * -from system import * -from plugins import * -from database import * -from crontab import * -from firewall import * -from control import *