1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
//! A set of constants used for the various requests in the library.

/// The base API url.
pub const BASE_API_URI: &str = "https://api.weeb.sh";
/// The base CDN url.
pub const BASE_CDN_URI: &str = "https://cdn.weeb.sh";
/// Url used to get basic info about the API.
pub const GET_IMAGES: &str = "https://api.weeb.sh/images";
/// Url used to get information about an image.
pub const GET_IMAGE_INFO: &str = "https://api.weeb.sh/images/info/";
/// Url used to get a random image.
pub const GET_IMAGE_RANDOM: &str = "https://api.weeb.sh/images/random";
/// Url used to get all the image tags.
pub const GET_IMAGE_TAGS: &str = "https://api.weeb.sh/images/tags";
/// Url used to get all the image types.
pub const GET_IMAGE_TYPES: &str = "https://api.weeb.sh/images/types";
/// Url used to post an image to the Api.
pub const POST_IMAGE: &str = "https://api.weeb.sh/images/upload";