feat: expand page ai hermes control surface
This commit is contained in:
@@ -27,7 +27,7 @@ pub(crate) mod web_shell;
|
||||
mod ws;
|
||||
|
||||
use crate::app::AppState;
|
||||
use axum::routing::{any, get, post};
|
||||
use axum::routing::{any, get, post, put};
|
||||
use axum::Router;
|
||||
|
||||
pub fn build_router(state: AppState) -> Router {
|
||||
@@ -145,6 +145,28 @@ pub fn build_router(state: AppState) -> Router {
|
||||
"/client/sessions/{session_id}",
|
||||
get(hermes_client::get_session),
|
||||
)
|
||||
.route("/client/profiles", get(hermes_client::list_profiles))
|
||||
.route(
|
||||
"/client/profiles/active",
|
||||
put(hermes_client::switch_active_profile),
|
||||
)
|
||||
.route(
|
||||
"/client/profiles/{profile_name}",
|
||||
get(hermes_client::get_profile),
|
||||
)
|
||||
.route(
|
||||
"/client/profile-memory",
|
||||
get(hermes_client::get_profile_memory)
|
||||
.post(hermes_client::save_profile_memory),
|
||||
)
|
||||
.route(
|
||||
"/client/skills",
|
||||
get(hermes_client::list_skills),
|
||||
)
|
||||
.route(
|
||||
"/client/skills/toggle",
|
||||
put(hermes_client::toggle_skill),
|
||||
)
|
||||
.route("/client/runs", post(hermes_client::create_run))
|
||||
.route("/client/events/{run_id}", get(hermes_client::stream_events))
|
||||
.route(
|
||||
|
||||
Reference in New Issue
Block a user