MCPcopy Create free account
hub / github.com/cosdata/cosdata / create_session

Function create_session

src/api/auth/controller.rs:26–32  ·  view source on GitHub ↗
(
    web::Json(create_session_dto): web::Json<CreateSessionDTO>,
    ctx: web::Data<AppContext>,
)

Source from the content-addressed store, hash-verified

24 tag = "auth"
25)]
26pub(crate) async fn create_session(
27 web::Json(create_session_dto): web::Json<CreateSessionDTO>,
28 ctx: web::Data<AppContext>,
29) -> Result<HttpResponse> {
30 let res = service::create_session(create_session_dto, ctx.into_inner()).await?;
31 Ok(HttpResponse::Ok().json(res))
32}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected