Skip to content

Commit

Permalink
fix(backend): user agent now honors MusicBrainz format
Browse files Browse the repository at this point in the history
  • Loading branch information
IgnisDa committed Aug 16, 2023
1 parent 0ebbc33 commit b7a9510
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions apps/backend/src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,23 @@ use crate::{

pub type MemoryDatabase = Arc<Storage<String, MemoryAuthData>>;

pub static VERSION: &str = env!("CARGO_PKG_VERSION");
pub static BASE_DIR: &str = env!("CARGO_MANIFEST_DIR");
pub const VERSION: &str = env!("CARGO_PKG_VERSION");
pub const PROJECT_NAME: &str = env!("CARGO_PKG_NAME");
pub const PAGE_LIMIT: i32 = 20;
pub const COOKIE_NAME: &str = "auth";
pub const AUTHOR: &str = "ignisda";
pub const USER_AGENT_STR: &str = const_str::concat!(AUTHOR, "/", PROJECT_NAME);
pub const AUTHOR_EMAIL: &str = "[email protected]";
pub const USER_AGENT_STR: &str = const_str::concat!(
AUTHOR,
"/",
PROJECT_NAME,
"-v",
VERSION,
" (",
AUTHOR_EMAIL,
")"
);
pub const AVATAR_URL: &str =
"https://raw.githubusercontent.com/IgnisDa/ryot/main/apps/frontend/public/icon-512x512.png";

Expand Down

0 comments on commit b7a9510

Please sign in to comment.