shared/api/endpoints/meta.rs
1use crate::{
2 api::{ApiEndpoint, Method},
3 domain::meta::{GetMetadataPath, MetadataResponse},
4 error::EmptyError,
5};
6
7/// Get metadata.
8pub struct Get;
9impl ApiEndpoint for Get {
10 type Path = GetMetadataPath;
11 type Req = ();
12 type Res = MetadataResponse;
13 type Err = EmptyError;
14 const METHOD: Method = Method::Get;
15}