fix dataservice
This commit is contained in:
@@ -42,6 +42,8 @@ namespace ReallifeGamemode.DataService
|
|||||||
|
|
||||||
services.AddDbContext<DatabaseContext>();
|
services.AddDbContext<DatabaseContext>();
|
||||||
|
|
||||||
|
services.AddCors();
|
||||||
|
|
||||||
services.AddLogic();
|
services.AddLogic();
|
||||||
|
|
||||||
services
|
services
|
||||||
@@ -129,6 +131,13 @@ namespace ReallifeGamemode.DataService
|
|||||||
app.UseDeveloperExceptionPage();
|
app.UseDeveloperExceptionPage();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
app.UseCors(c =>
|
||||||
|
{
|
||||||
|
c.AllowAnyOrigin()
|
||||||
|
.AllowAnyMethod()
|
||||||
|
.AllowAnyHeader();
|
||||||
|
});
|
||||||
|
|
||||||
app.UseSwaggerUI(c =>
|
app.UseSwaggerUI(c =>
|
||||||
{
|
{
|
||||||
c.RoutePrefix = "doc";
|
c.RoutePrefix = "doc";
|
||||||
|
|||||||
Reference in New Issue
Block a user