Remove code from dashboards __init__.py to separate modules
parent
f3a57cb2cd
commit
723d1377a1
|
@ -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
|
||||
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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):
|
|
@ -0,0 +1,3 @@
|
|||
from flask import Blueprint
|
||||
|
||||
dashboard_bp = Blueprint('dashboard', __name__)
|
Loading…
Reference in New Issue