first acceptance test failing..

This commit is contained in:
Tom Gardham-Pallister
2017-06-27 19:07:55 +01:00
parent e4e7fcc943
commit 0fa759c76c
4 changed files with 74 additions and 3 deletions

View File

@ -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);

View File

@ -7,7 +7,7 @@ using Ocelot.Configuration.Provider;
namespace Ocelot.Controllers
{
[Authorize]
[Route("cache")]
[Route("outputcache")]
public class OutputCacheController : Controller
{
private IOcelotCache<HttpResponseMessage> _cache;