refactor
This commit is contained in:
parent
4295bdcb8d
commit
3b0e8c1866
4 changed files with 133 additions and 101 deletions
9
src/routes/item/error.rs
Normal file
9
src/routes/item/error.rs
Normal 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")
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue