From 1846cd51b5df676ddea80e6757e1089dc2540987 Mon Sep 17 00:00:00 2001 From: Artur Jurat Date: Wed, 25 Dec 2024 11:41:59 +0100 Subject: [PATCH] fix files route --- modules/meteroid/src/api_rest/files/mod.rs | 2 +- modules/meteroid/src/api_rest/mod.rs | 4 ++-- modules/meteroid/src/api_rest/productfamilies/mod.rs | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/meteroid/src/api_rest/files/mod.rs b/modules/meteroid/src/api_rest/files/mod.rs index ff1daa9e..b3c80a9f 100644 --- a/modules/meteroid/src/api_rest/files/mod.rs +++ b/modules/meteroid/src/api_rest/files/mod.rs @@ -8,6 +8,6 @@ pub use router::FileApi; pub fn file_routes() -> Router { Router::new() - .route("/v1/logo/{uuid}", get(router::get_logo)) + .route("/v1/logo/:uuid", get(router::get_logo)) .route("/v1/invoice/pdf/:uuid", get(router::get_invoice_pdf)) } diff --git a/modules/meteroid/src/api_rest/mod.rs b/modules/meteroid/src/api_rest/mod.rs index 5274f1c5..70f9f69a 100644 --- a/modules/meteroid/src/api_rest/mod.rs +++ b/modules/meteroid/src/api_rest/mod.rs @@ -1,7 +1,7 @@ use crate::adapters::stripe::Stripe; use crate::api_rest::customers::customer_routes; use crate::api_rest::plans::plan_routes; -use crate::api_rest::productfamilies::product_families_routes; +use crate::api_rest::productfamilies::product_family_routes; use crate::api_rest::subscriptions::subscription_routes; use crate::services::storage::ObjectStoreService; use meteroid_store::Store; @@ -25,7 +25,7 @@ mod webhooks; pub fn api_routes() -> OpenApiRouter { OpenApiRouter::new() .merge(subscription_routes()) - .merge(product_families_routes()) + .merge(product_family_routes()) .merge(plan_routes()) .merge(customer_routes()) } diff --git a/modules/meteroid/src/api_rest/productfamilies/mod.rs b/modules/meteroid/src/api_rest/productfamilies/mod.rs index d6c923aa..ecb0e49b 100644 --- a/modules/meteroid/src/api_rest/productfamilies/mod.rs +++ b/modules/meteroid/src/api_rest/productfamilies/mod.rs @@ -6,6 +6,6 @@ mod mapping; mod model; pub mod router; -pub fn product_families_routes() -> OpenApiRouter { +pub fn product_family_routes() -> OpenApiRouter { OpenApiRouter::new().routes(routes!(router::list_product_families)) }