Miscellaneous improvements and removals (#502)

This commit is contained in:
triphora
2022-12-23 15:19:15 -05:00
committed by GitHub
parent 16d5a70c08
commit 983e2df065
17 changed files with 1164 additions and 1792 deletions

View File

@@ -23,6 +23,8 @@ pub struct Report {
#[serde(rename_all = "kebab-case")]
pub enum ItemType {
Project,
// TODO remove when API v1 POST routes are removed
Mod,
Version,
User,
Unknown,
@@ -32,6 +34,7 @@ impl ItemType {
pub fn as_str(&self) -> &'static str {
match self {
ItemType::Project => "project",
ItemType::Mod => "mod",
ItemType::Version => "version",
ItemType::User => "user",
ItemType::Unknown => "unknown",