diff --git a/server/src/handlers/http/modal/server.rs b/server/src/handlers/http/modal/server.rs index 815f00e59..d1e4b9aad 100644 --- a/server/src/handlers/http/modal/server.rs +++ b/server/src/handlers/http/modal/server.rs @@ -384,6 +384,25 @@ impl Server { .to(logstream::get_cache_enabled) .authorize_for_stream(Action::GetCacheEnabled), ), + ) + .service( + web::resource("/hottier") + // PUT "/logstream/{logstream}/hottier" ==> Set hottier for given logstream + .route( + web::put() + .to(logstream::put_stream_hot_tier) + .authorize_for_stream(Action::PutHotTierEnabled), + ) + .route( + web::get() + .to(logstream::get_stream_hot_tier) + .authorize_for_stream(Action::GetHotTierEnabled), + ) + .route( + web::delete() + .to(logstream::delete_stream_hot_tier) + .authorize_for_stream(Action::DeleteHotTierEnabled), + ), ), ) }