aboutsummaryrefslogtreecommitdiffstats
path: root/src/handlers.rs
diff options
context:
space:
mode:
authorYigit Sever2021-04-15 03:50:34 +0300
committerYigit Sever2021-04-15 03:50:34 +0300
commitdcc2d99140d25c5f163e425fb6ed7246fe88ea54 (patch)
tree9108ff3aa44622ff0bda4bb82d9b1fb38f168dfe /src/handlers.rs
parentbe037a6b35056ec8aa8f75e56becd009bc7c01f2 (diff)
parent412276f8dac075836aaa8fdf636aa068718a2bbf (diff)
downloadgradecoin-dcc2d99140d25c5f163e425fb6ed7246fe88ea54.tar.gz
gradecoin-dcc2d99140d25c5f163e425fb6ed7246fe88ea54.tar.bz2
gradecoin-dcc2d99140d25c5f163e425fb6ed7246fe88ea54.zip
Merge remote-tracking branch 'origin/template' into template
Diffstat (limited to 'src/handlers.rs')
-rw-r--r--src/handlers.rs11
1 files changed, 0 insertions, 11 deletions
diff --git a/src/handlers.rs b/src/handlers.rs
index b3a6fa8..7135190 100644
--- a/src/handlers.rs
+++ b/src/handlers.rs
@@ -194,17 +194,6 @@ pub async fn authenticate_user(
194 Ok(warp::reply::with_status(res_json, StatusCode::CREATED)) 194 Ok(warp::reply::with_status(res_json, StatusCode::CREATED))
195} 195}
196 196
197// fn shed_pem_header_footer(maybe_key: String) -> Result<Vec<u8>, String> {
198// let der_encoded = maybe_key
199// .lines()
200// .filter(|line| !line.starts_with("-"))
201// .fold(String::new(), |mut data, line| {
202// data.push_str(&line);
203// data
204// });
205// Ok(base64::decode(&der_encoded).expect("failed to decode base64 content"))
206// }
207
208/// GET /transaction 197/// GET /transaction
209/// Returns JSON array of transactions 198/// Returns JSON array of transactions
210/// Cannot fail 199/// Cannot fail