From 278832258d7be448e16d8d237b6cb4ab8db85b93 Mon Sep 17 00:00:00 2001 From: foxx Date: Thu, 30 Nov 2023 10:51:03 -0500 Subject: [PATCH] refactor --- src/main.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main.rs b/src/main.rs index 5a580d9..dda9adb 100644 --- a/src/main.rs +++ b/src/main.rs @@ -40,8 +40,8 @@ async fn index(socket_addr: SocketAddr, pool: &rocket::State) -> &'st } -#[post("/plugins/shopify", data = "")] -async fn shopify_webhook( +#[post("/your/endpoint", data = "")] +async fn your_endpoint( socket_addr: SocketAddr, request: RRequest, pool: &rocket::State, @@ -226,7 +226,7 @@ pub async fn main() { .manage::(pool) .mount( "/", - routes![index, shopify_webhook, slow_test_server], + routes![index, your_endpoint, slow_test_server], ) .attach(CORS) .launch()