fix(api): update default database path to '/github-ntfy'

This commit is contained in:
2025-06-15 17:43:36 +02:00
parent 21b51766bb
commit 34729a7edd

View File

@@ -16,7 +16,7 @@ struct RepoRequest {
pub async fn start_api() -> Result<(), Box<dyn std::error::Error + Send + Sync>> {
// Open the database
let db_path = env::var("DB_PATH").unwrap_or_else(|_| "./data".to_string());
let db_path = env::var("DB_PATH").unwrap_or_else(|_| "/github-ntfy".to_string());
std::fs::create_dir_all(&db_path).ok();
let repos_path = format!("{}/watched_repos.db", db_path);