feat ocelot
This commit is contained in:
16
Src/Gateway/Program.cs
Normal file
16
Src/Gateway/Program.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
using Ocelot.DependencyInjection;
|
||||
using Ocelot.Middleware;
|
||||
|
||||
var builder = WebApplication.CreateBuilder(args);
|
||||
builder.Configuration.AddJsonFile("ocelot.json", true, true);
|
||||
// Add services to the container.
|
||||
|
||||
builder.Services.AddOcelot();
|
||||
|
||||
var app = builder.Build();
|
||||
|
||||
// Configure the HTTP request pipeline.
|
||||
|
||||
app.UseOcelot().Wait();
|
||||
|
||||
app.Run();
|
||||
Reference in New Issue
Block a user