mirror of
https://github.com/nsnail/Ocelot.git
synced 2025-07-01 05:08:16 +08:00
plugged in proxy and still working..not seeing weird error from earlier
This commit is contained in:
@ -4,6 +4,7 @@ using Microsoft.AspNetCore.Http;
|
|||||||
using Microsoft.Extensions.Configuration;
|
using Microsoft.Extensions.Configuration;
|
||||||
using Microsoft.Extensions.DependencyInjection;
|
using Microsoft.Extensions.DependencyInjection;
|
||||||
using Microsoft.Extensions.Logging;
|
using Microsoft.Extensions.Logging;
|
||||||
|
using Ocelot.Library.Middleware;
|
||||||
|
|
||||||
namespace Ocelot
|
namespace Ocelot
|
||||||
{
|
{
|
||||||
@ -35,6 +36,8 @@ namespace Ocelot
|
|||||||
|
|
||||||
loggerFactory.AddDebug();
|
loggerFactory.AddDebug();
|
||||||
|
|
||||||
|
app.UseProxy();
|
||||||
|
|
||||||
app.Run(async context =>
|
app.Run(async context =>
|
||||||
{
|
{
|
||||||
await context.Response.WriteAsync("Hello from Tom");
|
await context.Response.WriteAsync("Hello from Tom");
|
||||||
|
Reference in New Issue
Block a user