mount nasr and fix endpoint mapping

This commit is contained in:
creating2morrow 2023-12-08 04:33:27 -05:00
parent df3530914a
commit 4677ee1f8f
3 changed files with 3 additions and 2 deletions

View file

@ -299,7 +299,7 @@ pub async fn trigger_nasr(
let proxy = reqwest::Proxy::http(&host)?;
let client = reqwest::Client::builder().proxy(proxy).build();
match client?
.post(format!("http://{}/ship/{}/{}", &customer, vendor, orid))
.post(format!("http://{}/nasr/{}/{}", &customer, vendor, orid))
.header("proof", jwp)
.send()
.await

View file

@ -206,7 +206,7 @@ pub async fn request_shipment(
/// vedor - `vendor's .b32.i2p`
///
/// Protected: true
#[post("/ship/<vendor>/<orid>")]
#[post("/nasr/<vendor>/<orid>")]
pub async fn trigger_nasr(
orid: String,
vendor: String,

View file

@ -44,6 +44,7 @@ async fn rocket() -> _ {
controller::get_products,
controller::request_shipment,
controller::retrieve_order,
controller::trigger_nasr,
],
)
}