Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
konnek1ive committed Nov 30, 2023
1 parent 65b66a2 commit 2788322
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ async fn index(socket_addr: SocketAddr, pool: &rocket::State<MySqlPool>) -> &'st
}


#[post("/plugins/shopify", data = "<data>")]
async fn shopify_webhook(
#[post("/your/endpoint", data = "<data>")]
async fn your_endpoint(
socket_addr: SocketAddr,
request: RRequest,
pool: &rocket::State<MySqlPool>,
Expand Down Expand Up @@ -226,7 +226,7 @@ pub async fn main() {
.manage::<MySqlPool>(pool)
.mount(
"/",
routes![index, shopify_webhook, slow_test_server],
routes![index, your_endpoint, slow_test_server],
)
.attach(CORS)
.launch()
Expand Down

0 comments on commit 2788322

Please sign in to comment.