NEW_NOTE_NOTICE feature flag

This commit is contained in:
Tamás Kádár
2024-03-15 14:26:33 +00:00
parent 4781882c72
commit e70f06f99f
5 changed files with 37 additions and 28 deletions

View File

@@ -10,6 +10,7 @@ pub struct Status {
pub max_expiration: u32,
pub allow_advanced: bool,
pub allow_files: bool,
pub new_note_notice: bool,
// Theme
pub theme_image: String,
pub theme_text: String,

View File

@@ -12,6 +12,7 @@ async fn get_status() -> impl Responder {
max_expiration: *config::MAX_EXPIRATION,
allow_advanced: *config::ALLOW_ADVANCED,
allow_files: *config::ALLOW_FILES,
new_note_notice: *config::NEW_NOTE_NOTICE,
theme_image: config::THEME_IMAGE.to_string(),
theme_text: config::THEME_TEXT.to_string(),
theme_page_title: config::THEME_PAGE_TITLE.to_string(),