application: config_snapshots, admin, providers, iptv
This commit is contained in:
16
crates/application/src/admin/get_settings.rs
Normal file
16
crates/application/src/admin/get_settings.rs
Normal file
@@ -0,0 +1,16 @@
|
||||
use domain::DomainResult;
|
||||
|
||||
use super::deps::AdminDeps;
|
||||
use super::queries::GetSettingsQuery;
|
||||
|
||||
/// Get all admin settings as key-value pairs.
|
||||
pub async fn execute(
|
||||
deps: &AdminDeps,
|
||||
_query: GetSettingsQuery,
|
||||
) -> DomainResult<Vec<(String, String)>> {
|
||||
deps.settings_repo.get_all().await
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
#[path = "tests/get_settings.rs"]
|
||||
mod tests;
|
||||
Reference in New Issue
Block a user