This commit is contained in:
JMARyA 2024-06-22 02:16:21 +02:00
parent 4295bdcb8d
commit 3b0e8c1866
Signed by: jmarya
GPG key ID: 901B2ADDF27C2263
4 changed files with 133 additions and 101 deletions

9
src/routes/item/error.rs Normal file
View file

@ -0,0 +1,9 @@
use crate::routes::{api_error, ApiError};
pub fn item_does_not_exist_error() -> ApiError {
api_error("The item does not exist")
}
pub fn variant_does_not_exist_error() -> ApiError {
api_error("The item does not exist")
}