Skip to content

Commit

Permalink
fix: add hottier APIs for standalone (#958)
Browse files Browse the repository at this point in the history
add hottier api scopes for standalone server
  • Loading branch information
nikhilsinhaparseable authored Oct 10, 2024
1 parent 57d50a1 commit f3a1e4e
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions server/src/handlers/http/modal/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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),
),
),
)
}
Expand Down

0 comments on commit f3a1e4e

Please sign in to comment.