From bcfe64982f114fad2b94d59d7cccf8f8ea6c4524 Mon Sep 17 00:00:00 2001 From: Ida Made Revindra Dikta Mahendra <idamaderevindra05@gmail.com> Date: Fri, 28 Mar 2025 09:42:40 +0700 Subject: [PATCH] [FIX]: Replace typo on unsubscribe post path --- src/controller/notification.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/controller/notification.rs b/src/controller/notification.rs index aa4fa8c..07c82a1 100644 --- a/src/controller/notification.rs +++ b/src/controller/notification.rs @@ -13,7 +13,7 @@ pub fn subscribe(product_type: &str, subscriber: Json<Subscriber>) -> Result<Cre }; } -#[post("/unsubscribe/<product_type>/<url>")] +#[post("/unsubscribe/<product_type>?<url>")] pub fn unsubscribe(product_type: &str, url: &str) -> Result<Json<Subscriber>> { return match NotificationService::unsubscribe(product_type, url) { Ok(f) => Ok(Json::from(f)), -- GitLab