File tree 2 files changed +26
-24
lines changed
2 files changed +26
-24
lines changed Original file line number Diff line number Diff line change 1
- using Microsoft . AspNetCore . Authorization ;
2
- using Microsoft . AspNetCore . Mvc ;
3
-
4
- namespace Ocelot . Cache
5
- {
6
- [ Authorize ]
7
- [ Route ( "outputcache" ) ]
8
- public class OutputCacheController : Controller
9
- {
10
- private readonly IOcelotCache < CachedResponse > _cache ;
11
-
12
- public OutputCacheController ( IOcelotCache < CachedResponse > cache )
13
- {
14
- _cache = cache ;
15
- }
16
-
17
- [ HttpDelete ]
18
- [ Route ( "{region}" ) ]
19
- public IActionResult Delete ( string region )
20
- {
21
- _cache . ClearRegion ( region ) ;
22
- return new NoContentResult ( ) ;
23
- }
24
- }
1
+ using Microsoft . AspNetCore . Authorization ;
2
+ using Microsoft . AspNetCore . Mvc ;
3
+
4
+ namespace Ocelot . Cache
5
+ {
6
+ [ Authorize ]
7
+ [ Route ( "outputcache" ) ]
8
+ [ ApiExplorerSettings ( IgnoreApi = true ) ]
9
+ public class OutputCacheController : Controller
10
+ {
11
+ private readonly IOcelotCache < CachedResponse > _cache ;
12
+
13
+ public OutputCacheController ( IOcelotCache < CachedResponse > cache )
14
+ {
15
+ _cache = cache ;
16
+ }
17
+
18
+ [ HttpDelete ]
19
+ [ Route ( "{region}" ) ]
20
+ public IActionResult Delete ( string region )
21
+ {
22
+ _cache . ClearRegion ( region ) ;
23
+ return new NoContentResult ( ) ;
24
+ }
25
+ }
25
26
}
Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ namespace Ocelot.Configuration
13
13
14
14
[ Authorize ]
15
15
[ Route ( "configuration" ) ]
16
+ [ ApiExplorerSettings ( IgnoreApi = true ) ]
16
17
public class FileConfigurationController : Controller
17
18
{
18
19
private readonly IFileConfigurationRepository _repo ;
You can’t perform that action at this time.
0 commit comments