use std::sync::Arc;

use axum::{
    routing::{delete, get, post, put},
    Router,
};

use crate::models::error::ApiResult;
use crate::AppState;

pub fn router() -> Router<Arc<AppState>> {
    Router::new()
        .route("/", get(list_members))
        .route("/invite", post(invite_member))
        .route("/{id}/role", put(update_member_role))
        .route("/{id}", delete(remove_member))
        .route("/roles", get(list_roles))
        .route("/roles", post(create_role))
        .route("/roles/{id}", put(update_role))
        .route("/roles/{id}", delete(delete_role))
}

async fn list_members() -> ApiResult<impl axum::response::IntoResponse> {
    todo!()
}

async fn invite_member() -> ApiResult<impl axum::response::IntoResponse> {
    todo!()
}

async fn update_member_role() -> ApiResult<impl axum::response::IntoResponse> {
    todo!()
}

async fn remove_member() -> ApiResult<impl axum::response::IntoResponse> {
    todo!()
}

async fn list_roles() -> ApiResult<impl axum::response::IntoResponse> {
    todo!()
}

async fn create_role() -> ApiResult<impl axum::response::IntoResponse> {
    todo!()
}

async fn update_role() -> ApiResult<impl axum::response::IntoResponse> {
    todo!()
}

async fn delete_role() -> ApiResult<impl axum::response::IntoResponse> {
    todo!()
}
