mirror of
				https://github.com/nsnail/Ocelot.git
				synced 2025-11-04 09:15:27 +08:00 
			
		
		
		
	first acceptance test failing..
This commit is contained in:
		@@ -1,5 +1,6 @@
 | 
			
		||||
using System;
 | 
			
		||||
using System.Collections.Generic;
 | 
			
		||||
using System.Linq;
 | 
			
		||||
using System.Threading.Tasks;
 | 
			
		||||
using Ocelot.Configuration.Provider;
 | 
			
		||||
using Ocelot.Logging;
 | 
			
		||||
@@ -33,9 +34,11 @@ namespace Ocelot.Cache
 | 
			
		||||
                return new List<string>();
 | 
			
		||||
            }
 | 
			
		||||
 | 
			
		||||
            var cachedReRoutes = config.Data.ReRoutes.Where(x => x.IsCached);
 | 
			
		||||
            
 | 
			
		||||
            var regions = new List<string>();
 | 
			
		||||
 | 
			
		||||
            foreach(var reRoute in config.Data.ReRoutes)
 | 
			
		||||
            foreach(var reRoute in cachedReRoutes)
 | 
			
		||||
            {
 | 
			
		||||
                var region = _creator.Region(reRoute);
 | 
			
		||||
                regions.Add(region);
 | 
			
		||||
 
 | 
			
		||||
@@ -7,7 +7,7 @@ using Ocelot.Configuration.Provider;
 | 
			
		||||
namespace Ocelot.Controllers
 | 
			
		||||
{
 | 
			
		||||
    [Authorize]
 | 
			
		||||
    [Route("cache")]
 | 
			
		||||
    [Route("outputcache")]
 | 
			
		||||
    public class OutputCacheController : Controller
 | 
			
		||||
    {
 | 
			
		||||
        private IOcelotCache<HttpResponseMessage> _cache;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user