middleware

This commit is contained in:
Aiden McClelland
2021-07-27 16:40:51 -06:00
committed by Aiden McClelland
parent b807323fa4
commit 01ed3318cb
8 changed files with 381 additions and 22 deletions

View File

@@ -29,6 +29,7 @@ pub mod id;
pub mod inspect;
pub mod install;
pub mod manager;
pub mod middleware;
pub mod migration;
pub mod net;
pub mod registry;
@@ -45,7 +46,7 @@ use rpc_toolkit::command;
use rpc_toolkit::yajrc::RpcError;
pub use version::{init, self_update};
#[command]
#[command(metadata(authenticated = false))]
pub fn echo(#[context] _ctx: EitherContext, #[arg] message: String) -> Result<String, RpcError> {
Ok(message)
}