shared/api/endpoints/user/
fonts.rsuse super::ApiEndpoint;
use crate::{
api::method::Method,
domain::user::{
UserFontCreatePath, UserFontDeletePath, UserFontGetPath, UserFontNameRequest,
UserFontResponse, UserFontUpdatePath,
},
error::EmptyError,
};
pub struct Create;
impl ApiEndpoint for Create {
type Req = UserFontNameRequest;
type Res = UserFontResponse;
type Path = UserFontCreatePath;
type Err = EmptyError;
const METHOD: Method = Method::Post;
}
pub struct Get;
impl ApiEndpoint for Get {
type Req = ();
type Res = UserFontResponse;
type Path = UserFontGetPath;
type Err = EmptyError;
const METHOD: Method = Method::Get;
}
pub struct Update;
impl ApiEndpoint for Update {
type Req = UserFontNameRequest;
type Res = ();
type Path = UserFontUpdatePath;
type Err = EmptyError;
const METHOD: Method = Method::Patch;
}
pub struct Delete;
impl ApiEndpoint for Delete {
type Req = ();
type Res = ();
type Path = UserFontDeletePath;
type Err = EmptyError;
const METHOD: Method = Method::Delete;
}