Update Photos API

Since there is a body to the photos api it should be a post for now.
Also updated the response to separate files and directories.
This commit is contained in:
Cameron Cordes
2020-07-09 18:22:03 -04:00
parent e0e12dcc7b
commit 78c066b7be
3 changed files with 34 additions and 9 deletions

View File

@@ -21,7 +21,6 @@ impl FromStr for Claims {
fn from_str(s: &str) -> Result<Self, Self::Err> {
let token = *(s.split("Bearer ").collect::<Vec<_>>().last().unwrap_or(&""));
println!("Parsing token: '{}'", token);
match decode::<Claims>(
&token,