nebulous 0.1.86

A globally distributed container orchestrator
Documentation
1
2
3
4
5
6
7
8
9
10
// src/handlers/auth.rs

use crate::models::V1UserProfile;
use axum::{extract::Extension, extract::Json, http::StatusCode};

pub async fn get_user_profile(
    Extension(user_profile): Extension<V1UserProfile>,
) -> Result<Json<V1UserProfile>, (StatusCode, Json<serde_json::Value>)> {
    Ok(Json(user_profile))
}