Create Tag tables and Add Tag endpoint

This commit is contained in:
Cameron Cordes
2021-09-03 19:34:38 -04:00
parent 51081d01c6
commit 4834cacfc3
7 changed files with 155 additions and 5 deletions

View File

@@ -133,6 +133,12 @@ impl From<fs::Metadata> for MetadataResponse {
}
}
#[derive(Debug, Deserialize)]
pub struct AddTagRequest {
pub file_name: String,
pub tag_name: String,
}
#[cfg(test)]
mod tests {
use super::Claims;