tsk-194: Make distinction in MetadataQueue endpoints #222

Merged
kdeng00 merged 6 commits from tsk-194 into main 2025-10-27 13:25:30 -04:00
2 changed files with 7 additions and 6 deletions
Showing only changes of commit 7ebf875624 - Show all commits
+2 -1
View File
@@ -107,10 +107,11 @@ pub mod endpoint {
use crate::repo;
use crate::repo::queue as repo_queue;
// TODO: Change the name of this endpoint. Including the function name and path
/// Endpoint to create song
#[utoipa::path(
post,
path = super::super::endpoints::QUEUEMETADATA,
path = super::super::queue::endpoints::QUEUEMETADATA,
request_body(
content = super::request::create_metadata::Request,
description = "Data needed to create the song and save it to the filesystem",
+5 -5
View File
@@ -53,7 +53,7 @@ pub mod init {
use utoipa::OpenApi;
use crate::callers::coverart as coverart_caller;
use crate::callers::metadata as metadata_caller;
use crate::callers::queue::metadata as metadata_caller;
use crate::callers::queue::coverart as coverart_queue_callers;
use crate::callers::queue::song as song_queue_callers;
use crate::callers::song as song_caller;
@@ -184,14 +184,14 @@ pub mod init {
)),
)
.route(
crate::callers::endpoints::QUEUEMETADATA,
post(crate::callers::metadata::endpoint::queue_metadata).route_layer(
crate::callers::queue::endpoints::QUEUEMETADATA,
post(crate::callers::queue::metadata::endpoint::queue_metadata).route_layer(
axum::middleware::from_fn(crate::auth::auth::<axum::body::Body>),
),
)
.route(
crate::callers::endpoints::QUEUEMETADATA,
get(crate::callers::metadata::endpoint::fetch_metadata).route_layer(
crate::callers::queue::endpoints::QUEUEMETADATA,
get(crate::callers::queue::metadata::endpoint::fetch_metadata).route_layer(
axum::middleware::from_fn(crate::auth::auth::<axum::body::Body>),
),
)