setup flow mvp complete

This commit is contained in:
Aiden McClelland
2021-09-11 18:27:23 -06:00
parent 16dc0ffcf5
commit 7f194fbe0e
12 changed files with 359 additions and 119 deletions

View File

@@ -165,8 +165,8 @@ pub fn encrypt<M: Metadata>(key: Arc<String>) -> DynMiddleware<M> {
async move {
if !encrypted
&& metadata
.get(&rpc_req.method.as_str(), "encrypted")
.unwrap_or_default()
.get(&rpc_req.method.as_str(), "authenticated")
.unwrap_or(true)
{
let (res_parts, _) = Response::new(()).into_parts();
Ok(Err(to_response(