mirror of
https://github.com/cupcakearmy/cryptgeon.git
synced 2025-09-10 03:00:40 +00:00
Added option to have an imprint
The environment Variable IMPRINT_URL simply adds a /imprint button in footer to the url
This commit is contained in:
@@ -12,6 +12,7 @@ pub struct Status {
|
||||
pub max_expiration: u32,
|
||||
pub allow_advanced: bool,
|
||||
pub allow_files: bool,
|
||||
pub imprint_url: String,
|
||||
// Theme
|
||||
pub theme_image: String,
|
||||
pub theme_text: String,
|
||||
@@ -28,6 +29,7 @@ pub async fn get_status() -> (StatusCode, Json<Status>) {
|
||||
max_expiration: *config::MAX_EXPIRATION,
|
||||
allow_advanced: *config::ALLOW_ADVANCED,
|
||||
allow_files: *config::ALLOW_FILES,
|
||||
imprint_url: config::IMPRINT_URL.to_string(),
|
||||
theme_new_note_notice: *config::THEME_NEW_NOTE_NOTICE,
|
||||
theme_image: config::THEME_IMAGE.to_string(),
|
||||
theme_text: config::THEME_TEXT.to_string(),
|
||||
|
Reference in New Issue
Block a user