合并主分支
解决简单冲突
This commit is contained in:
@@ -21,6 +21,9 @@ use crate::{
|
||||
character_visual_assets::{
|
||||
generate_character_visual, get_character_visual_job, publish_character_visual,
|
||||
},
|
||||
editor_background_music_prompt_assist::{
|
||||
complete_editor_background_music_prompt, simplify_editor_background_music_prompt,
|
||||
},
|
||||
hyper3d_generation::{
|
||||
get_hyper3d_downloads, get_hyper3d_task_status, submit_hyper3d_image_to_model,
|
||||
submit_hyper3d_text_to_model,
|
||||
@@ -33,6 +36,7 @@ use crate::{
|
||||
};
|
||||
|
||||
const HYPER3D_IMAGE_TO_MODEL_BODY_LIMIT_BYTES: usize = 56 * 1024 * 1024;
|
||||
pub(crate) const BACKGROUND_MUSIC_PROMPT_ASSIST_BODY_LIMIT_BYTES: usize = 32 * 1024;
|
||||
|
||||
pub fn router(state: AppState) -> Router<AppState> {
|
||||
Router::new()
|
||||
@@ -143,6 +147,28 @@ pub fn router(state: AppState) -> Router<AppState> {
|
||||
require_bearer_auth,
|
||||
)),
|
||||
)
|
||||
.route(
|
||||
"/api/editor/audios/background-music/prompts/completions",
|
||||
post(complete_editor_background_music_prompt)
|
||||
.layer(DefaultBodyLimit::max(
|
||||
BACKGROUND_MUSIC_PROMPT_ASSIST_BODY_LIMIT_BYTES,
|
||||
))
|
||||
.route_layer(middleware::from_fn_with_state(
|
||||
state.clone(),
|
||||
require_bearer_auth,
|
||||
)),
|
||||
)
|
||||
.route(
|
||||
"/api/editor/audios/background-music/prompts/simplifications",
|
||||
post(simplify_editor_background_music_prompt)
|
||||
.layer(DefaultBodyLimit::max(
|
||||
BACKGROUND_MUSIC_PROMPT_ASSIST_BODY_LIMIT_BYTES,
|
||||
))
|
||||
.route_layer(middleware::from_fn_with_state(
|
||||
state.clone(),
|
||||
require_bearer_auth,
|
||||
)),
|
||||
)
|
||||
.route(
|
||||
"/api/assets/character-animation/jobs/{task_id}",
|
||||
get(get_character_animation_job),
|
||||
|
||||
Reference in New Issue
Block a user