forklaunch 1.34.0

Launch faster with forklaunch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//! Payment links routes; the billing
//! interface declares each operation's contract.
use crate::{api::controllers::payment_link, registrations::{AppState, Routes}};

pub fn mount(routes: Routes, state: &AppState) -> Routes {
    routes
        .route("createPaymentLink", payment_link::create_payment_link(state))
        .route("getPaymentLink", payment_link::get_payment_link(state))
        .route("updatePaymentLink", payment_link::update_payment_link(state))
        .route("expirePaymentLink", payment_link::expire_payment_link(state))
        .route("handlePaymentSuccess", payment_link::handle_payment_success(state))
        .route("handlePaymentFailure", payment_link::handle_payment_failure(state))
        .route("listPaymentLinks", payment_link::list_payment_links(state))
}