2023-05-15 08:51:32 +08:00
|
|
|
from flask import Blueprint
|
|
|
|
from libs.external_api import ExternalApi
|
|
|
|
|
|
|
|
bp = Blueprint('console', __name__, url_prefix='/console/api')
|
|
|
|
api = ExternalApi(bp)
|
|
|
|
|
2023-05-25 15:54:45 +08:00
|
|
|
# Import other controllers
|
2024-04-08 18:51:46 +08:00
|
|
|
from . import admin, apikey, extension, feature, setup, version, ping
|
2023-05-15 08:51:32 +08:00
|
|
|
# Import app controllers
|
2024-01-12 12:34:01 +08:00
|
|
|
from .app import (advanced_prompt_template, annotation, app, audio, completion, conversation, generator, message,
|
2024-04-08 18:51:46 +08:00
|
|
|
model_config, site, statistic, workflow, workflow_run, workflow_app_log, workflow_statistic, agent)
|
2023-05-15 08:51:32 +08:00
|
|
|
# Import auth controllers
|
2024-01-12 12:34:01 +08:00
|
|
|
from .auth import activate, data_source_oauth, login, oauth
|
2024-02-01 18:11:57 +08:00
|
|
|
# Import billing controllers
|
|
|
|
from .billing import billing
|
2023-05-15 08:51:32 +08:00
|
|
|
# Import datasets controllers
|
2024-01-12 12:34:01 +08:00
|
|
|
from .datasets import data_source, datasets, datasets_document, datasets_segments, file, hit_testing
|
2023-05-25 15:54:45 +08:00
|
|
|
# Import explore controllers
|
2024-04-08 18:51:46 +08:00
|
|
|
from .explore import (audio, completion, conversation, installed_app, message, parameter, recommended_app,
|
|
|
|
saved_message, workflow)
|
2024-01-12 12:34:01 +08:00
|
|
|
# Import workspace controllers
|
2024-04-18 17:33:32 +08:00
|
|
|
from .workspace import account, members, model_providers, models, tool_providers, workspace
|
|
|
|
# Import enterprise controllers
|
|
|
|
from .enterprise import enterprise_sso
|