mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-30 04:01:58 +00:00
fix instructions on installed packages
This commit is contained in:
@@ -272,9 +272,8 @@ fn s9pk_router(ctx: RpcContext) -> Router {
|
|||||||
.route("/installed/:s9pk/*path", {
|
.route("/installed/:s9pk/*path", {
|
||||||
let ctx = ctx.clone();
|
let ctx = ctx.clone();
|
||||||
any(
|
any(
|
||||||
|x::Path(s9pk): x::Path<String>,
|
|x::Path((s9pk, path)): x::Path<(String, PathBuf)>,
|
||||||
x::Path(path): x::Path<PathBuf>,
|
x::RawQuery(query): x::RawQuery,
|
||||||
x::Query(commitment): x::Query<Option<MerkleArchiveCommitment>>,
|
|
||||||
request: Request| async move {
|
request: Request| async move {
|
||||||
if_authorized(&ctx, request, |request| async {
|
if_authorized(&ctx, request, |request| async {
|
||||||
let s9pk = S9pk::deserialize(
|
let s9pk = S9pk::deserialize(
|
||||||
@@ -287,7 +286,12 @@ fn s9pk_router(ctx: RpcContext) -> Router {
|
|||||||
)
|
)
|
||||||
.await?,
|
.await?,
|
||||||
),
|
),
|
||||||
commitment.as_ref(),
|
query
|
||||||
|
.as_deref()
|
||||||
|
.map(MerkleArchiveCommitment::from_query)
|
||||||
|
.and_then(|a| a.transpose())
|
||||||
|
.transpose()?
|
||||||
|
.as_ref(),
|
||||||
)
|
)
|
||||||
.await?;
|
.await?;
|
||||||
let (parts, _) = request.into_parts();
|
let (parts, _) = request.into_parts();
|
||||||
|
|||||||
Reference in New Issue
Block a user