mirror of
https://github.com/langgenius/dify.git
synced 2026-05-06 02:18:08 +08:00
mr app-trial
This commit is contained in:
@ -5,6 +5,39 @@ from flask_restx import Namespace
|
|||||||
|
|
||||||
from libs.external_api import ExternalApi
|
from libs.external_api import ExternalApi
|
||||||
|
|
||||||
|
from .app.app_import import AppImportApi, AppImportCheckDependenciesApi, AppImportConfirmApi
|
||||||
|
from .explore.audio import ChatAudioApi, ChatTextApi
|
||||||
|
from .explore.completion import ChatApi, ChatStopApi, CompletionApi, CompletionStopApi
|
||||||
|
from .explore.conversation import (
|
||||||
|
ConversationApi,
|
||||||
|
ConversationListApi,
|
||||||
|
ConversationPinApi,
|
||||||
|
ConversationRenameApi,
|
||||||
|
ConversationUnPinApi,
|
||||||
|
)
|
||||||
|
from .explore.message import (
|
||||||
|
MessageFeedbackApi,
|
||||||
|
MessageListApi,
|
||||||
|
MessageMoreLikeThisApi,
|
||||||
|
MessageSuggestedQuestionApi,
|
||||||
|
)
|
||||||
|
from .explore.trial import (
|
||||||
|
AppApi,
|
||||||
|
TrialAppParameterApi,
|
||||||
|
TrialChatApi,
|
||||||
|
TrialChatAudioApi,
|
||||||
|
TrialChatTextApi,
|
||||||
|
TrialCompletionApi,
|
||||||
|
TrialMessageSuggestedQuestionApi,
|
||||||
|
TrialSitApi,
|
||||||
|
)
|
||||||
|
from .explore.workflow import (
|
||||||
|
InstalledAppWorkflowRunApi,
|
||||||
|
InstalledAppWorkflowTaskStopApi,
|
||||||
|
)
|
||||||
|
from .files import FileApi, FilePreviewApi, FileSupportTypeApi
|
||||||
|
from .remote_files import RemoteFileInfoApi, RemoteFileUploadApi
|
||||||
|
|
||||||
bp = Blueprint("console", __name__, url_prefix="/console/api")
|
bp = Blueprint("console", __name__, url_prefix="/console/api")
|
||||||
|
|
||||||
api = ExternalApi(
|
api = ExternalApi(
|
||||||
|
|||||||
@ -13,7 +13,7 @@ class BannerApi(Resource):
|
|||||||
def get(self):
|
def get(self):
|
||||||
"""Get banner list."""
|
"""Get banner list."""
|
||||||
banners = (
|
banners = (
|
||||||
db.session.query(ExporleBanner).filter(ExporleBanner.status == "enabled").order_by(ExporleBanner.sort).all()
|
db.session.query(ExporleBanner).where(ExporleBanner.status == "enabled").order_by(ExporleBanner.sort).all()
|
||||||
)
|
)
|
||||||
|
|
||||||
# Convert banners to serializable format
|
# Convert banners to serializable format
|
||||||
|
|||||||
Reference in New Issue
Block a user