File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -367,23 +367,24 @@ impl Server {
367
367
. route (
368
368
web:: put ( )
369
369
. to ( logstream:: put_stream)
370
- . authorize_for_stream ( Action :: CreateStream ) ,
370
+ . authorize_for_stream ( Action :: CreateStream )
371
+ . wrap ( from_fn ( resource_check:: check_resource_utilization_middleware) ) ,
371
372
)
372
373
// POST "/logstream/{logstream}" ==> Post logs to given log stream
373
374
. route (
374
375
web:: post ( )
375
376
. to ( ingest:: post_event)
376
- . authorize_for_stream ( Action :: Ingest ) ,
377
+ . authorize_for_stream ( Action :: Ingest )
378
+ . wrap ( from_fn ( resource_check:: check_resource_utilization_middleware) ) ,
377
379
)
378
380
// DELETE "/logstream/{logstream}" ==> Delete log stream
379
381
. route (
380
382
web:: delete ( )
381
383
. to ( logstream:: delete)
382
384
. authorize_for_stream ( Action :: DeleteStream ) ,
383
385
)
384
- . app_data ( web:: JsonConfig :: default ( ) . limit ( MAX_EVENT_PAYLOAD_SIZE ) )
385
- . wrap ( from_fn ( resource_check:: check_resource_utilization_middleware) ) ,
386
- )
386
+ . app_data ( web:: JsonConfig :: default ( ) . limit ( MAX_EVENT_PAYLOAD_SIZE ) ) ,
387
+ )
387
388
. service (
388
389
// GET "/logstream/{logstream}/info" ==> Get info for given log stream
389
390
web:: resource ( "/info" ) . route (
You can’t perform that action at this time.
0 commit comments