mirror of
https://github.com/creating2morrow/neveko.git
synced 2024-12-22 19:49:24 +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 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
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -44,6 +44,7 @@ async fn rocket() -> _ {
|
|||
controller::get_products,
|
||||
controller::request_shipment,
|
||||
controller::retrieve_order,
|
||||
controller::trigger_nasr,
|
||||
],
|
||||
)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue