Skip to content

Commit

Permalink
fix files route
Browse files Browse the repository at this point in the history
  • Loading branch information
azhur committed Dec 25, 2024
1 parent 12ee064 commit 1846cd5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion modules/meteroid/src/api_rest/files/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ pub use router::FileApi;

pub fn file_routes() -> Router<AppState> {
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))
}
4 changes: 2 additions & 2 deletions modules/meteroid/src/api_rest/mod.rs
Original file line number Diff line number Diff line change
@@ -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;
Expand All @@ -25,7 +25,7 @@ mod webhooks;
pub fn api_routes() -> OpenApiRouter<AppState> {
OpenApiRouter::new()
.merge(subscription_routes())
.merge(product_families_routes())
.merge(product_family_routes())
.merge(plan_routes())
.merge(customer_routes())
}
Expand Down
2 changes: 1 addition & 1 deletion modules/meteroid/src/api_rest/productfamilies/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ mod mapping;
mod model;
pub mod router;

pub fn product_families_routes() -> OpenApiRouter<AppState> {
pub fn product_family_routes() -> OpenApiRouter<AppState> {
OpenApiRouter::new().routes(routes!(router::list_product_families))
}

0 comments on commit 1846cd5

Please sign in to comment.