Remove code from dashboards __init__.py to separate modules

master
esensar 2018-10-06 13:46:32 +02:00
parent f3a57cb2cd
commit 723d1377a1
6 changed files with 5 additions and 5 deletions

View File

@ -3,7 +3,7 @@ from flask_restful import abort
from marshmallow import Schema, fields
from webargs.flaskparser import use_args
from flasgger import swag_from
import app.dashboard as dashboard
import app.dashboards.api as dashboard
from app.api import ProtectedResource

View File

@ -29,7 +29,7 @@ def setup_blueprints(app):
"""
from .accounts.blueprint import accounts_bp
from .devices import devices_bp
from .dashboard import dashboard_bp
from .dashboards.blueprint import dashboard_bp
from .api import api_bp
from .mqtt import mqtt_bp

View File

View File

@ -1,8 +1,5 @@
from flask import Blueprint
from .models import Dashboard
dashboard_bp = Blueprint('dashboard', __name__)
# Public interface
def create_dashboard(dashboard_data, account_id):

View File

@ -0,0 +1,3 @@
from flask import Blueprint
dashboard_bp = Blueprint('dashboard', __name__)