mirror of
https://github.com/creating2morrow/neveko.git
synced 2025-03-25 00:28:49 +00:00
mount nasr and fix endpoint mapping
This commit is contained in:
parent
df3530914a
commit
4677ee1f8f
3 changed files with 3 additions and 2 deletions
|
@ -299,7 +299,7 @@ pub async fn trigger_nasr(
|
||||||
let proxy = reqwest::Proxy::http(&host)?;
|
let proxy = reqwest::Proxy::http(&host)?;
|
||||||
let client = reqwest::Client::builder().proxy(proxy).build();
|
let client = reqwest::Client::builder().proxy(proxy).build();
|
||||||
match client?
|
match client?
|
||||||
.post(format!("http://{}/ship/{}/{}", &customer, vendor, orid))
|
.post(format!("http://{}/nasr/{}/{}", &customer, vendor, orid))
|
||||||
.header("proof", jwp)
|
.header("proof", jwp)
|
||||||
.send()
|
.send()
|
||||||
.await
|
.await
|
||||||
|
|
|
@ -206,7 +206,7 @@ pub async fn request_shipment(
|
||||||
/// vedor - `vendor's .b32.i2p`
|
/// vedor - `vendor's .b32.i2p`
|
||||||
///
|
///
|
||||||
/// Protected: true
|
/// Protected: true
|
||||||
#[post("/ship/<vendor>/<orid>")]
|
#[post("/nasr/<vendor>/<orid>")]
|
||||||
pub async fn trigger_nasr(
|
pub async fn trigger_nasr(
|
||||||
orid: String,
|
orid: String,
|
||||||
vendor: String,
|
vendor: String,
|
||||||
|
|
|
@ -44,6 +44,7 @@ async fn rocket() -> _ {
|
||||||
controller::get_products,
|
controller::get_products,
|
||||||
controller::request_shipment,
|
controller::request_shipment,
|
||||||
controller::retrieve_order,
|
controller::retrieve_order,
|
||||||
|
controller::trigger_nasr,
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue