forklaunch 1.33.0

Launch faster with forklaunch
1
2
3
4
5
6
7
8
9
//! Stripe and PayPal provider callbacks routes; the ecommerce
//! interface declares each operation's contract.
use crate::{api::controllers::webhook, registrations::{AppState, Routes}};

pub fn mount(routes: Routes, state: &AppState) -> Routes {
    routes
        .route("handleStripeWebhook", webhook::handle_stripe_webhook(state))
        .route("handlePaypalWebhook", webhook::handle_paypal_webhook(state))
}