forklaunch 1.35.1

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

pub fn mount(routes: Routes, state: &AppState) -> Routes {
    routes
        .route("createCart", cart::create_cart(state))
        .route("getCart", cart::get_cart(state))
        .route("addCartItem", cart::add_cart_item(state))
        .route("removeCartItem", cart::remove_cart_item(state))
        .route("clearCart", cart::clear_cart(state))
}