@@ -18,11 +18,7 @@ public Task<ArticlesEnvelope> Get(
1818 [ FromQuery ] int ? limit ,
1919 [ FromQuery ] int ? offset ,
2020 CancellationToken cancellationToken
21- ) =>
22- mediator . Send (
23- new List . Query ( tag , author , favorited , limit , offset ) ,
24- cancellationToken
25- ) ;
21+ ) => mediator . Send ( new List . Query ( tag , author , favorited , limit , offset ) , cancellationToken ) ;
2622
2723 [ HttpGet ( "feed" ) ]
2824 public Task < ArticlesEnvelope > GetFeed (
@@ -34,29 +30,31 @@ public Task<ArticlesEnvelope> GetFeed(
3430 CancellationToken cancellationToken
3531 ) =>
3632 mediator . Send (
37- new List . Query ( tag , author , favorited , limit , offset ) { IsFeed = true } , cancellationToken ) ;
33+ new List . Query ( tag , author , favorited , limit , offset ) { IsFeed = true } ,
34+ cancellationToken
35+ ) ;
3836
3937 [ HttpGet ( "{slug}" ) ]
40- public Task < ArticleEnvelope > Get ( string slug , CancellationToken cancellationToken ) => mediator . Send ( new Details . Query ( slug ) , cancellationToken ) ;
38+ public Task < ArticleEnvelope > Get ( string slug , CancellationToken cancellationToken ) =>
39+ mediator . Send ( new Details . Query ( slug ) , cancellationToken ) ;
4140
4241 [ HttpPost ]
4342 [ Authorize ( AuthenticationSchemes = JwtIssuerOptions . Schemes ) ]
4443 public Task < ArticleEnvelope > Create (
4544 [ FromBody ] Create . Command command ,
4645 CancellationToken cancellationToken
47- ) =>
48- mediator . Send ( command , cancellationToken ) ;
46+ ) => mediator . Send ( command , cancellationToken ) ;
4947
5048 [ HttpPut ( "{slug}" ) ]
5149 [ Authorize ( AuthenticationSchemes = JwtIssuerOptions . Schemes ) ]
5250 public Task < ArticleEnvelope > Edit (
5351 string slug ,
5452 [ FromBody ] Edit . Model model ,
5553 CancellationToken cancellationToken
56- ) =>
57- mediator . Send ( new Edit . Command ( model , slug ) , cancellationToken ) ;
54+ ) => mediator . Send ( new Edit . Command ( model , slug ) , cancellationToken ) ;
5855
5956 [ HttpDelete ( "{slug}" ) ]
6057 [ Authorize ( AuthenticationSchemes = JwtIssuerOptions . Schemes ) ]
61- public Task Delete ( string slug , CancellationToken cancellationToken ) => mediator . Send ( new Delete . Command ( slug ) , cancellationToken ) ;
58+ public Task Delete ( string slug , CancellationToken cancellationToken ) =>
59+ mediator . Send ( new Delete . Command ( slug ) , cancellationToken ) ;
6260}
0 commit comments