/* This file is part of jellything (https://codeberg.org/metamuffin/jellything) which is licensed under the GNU Affero General Public License (version 3); see /COPYING. Copyright (C) 2025 metamuffin */ use crate::session::AdminSession; use anyhow::Result; use jellybase::database::Database; use jellycommon::api::ApiAdminUsersResponse; pub fn admin_users(db: &Database, _session: &AdminSession) -> Result { // TODO dont return useless info like passwords Ok(ApiAdminUsersResponse { users: db.list_users()?, }) }