First one #8
+4
-4
@@ -80,10 +80,10 @@ pub mod init {
|
||||
pub async fn routes() -> axum::Router {
|
||||
axum::Router::new()
|
||||
.route(
|
||||
crate::callers::queue::endpoints::QUEUESONG,
|
||||
post(crate::callers::queue::song::endpoint::queue_song).route_layer(
|
||||
axum::middleware::from_fn(crate::auth::auth::<axum::body::Body>),
|
||||
),
|
||||
crate::caller::endpoints::ADD_CONTACT,
|
||||
post(contact_endpoints::create_contact).route_layer(axum::middleware::from_fn(
|
||||
crate::auth::auth::<axum::body::Body>,
|
||||
)),
|
||||
)
|
||||
.layer(cors::configure_cors().await)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user