api_switch_project

Function api_switch_project 

Source
pub async fn api_switch_project(
    __arg0: State<ProjectsState>,
    __arg1: Json<SwitchProjectRequest>,
) -> impl IntoResponse
Expand description

POST /api/projects/switch - Switch to a different project

Note: This endpoint signals that a switch is requested. The actual switch requires reloading the server with the new project, which the frontend handles by triggering a page reload.