Dev #11
@@ -145,8 +145,16 @@ app.UseMiddleware<ExceptionHandlingMiddleware>();
|
|||||||
|
|
||||||
if (app.Environment.IsDevelopment())
|
if (app.Environment.IsDevelopment())
|
||||||
{
|
{
|
||||||
app.UseSwagger();
|
app.UseSwagger(c =>
|
||||||
app.UseSwaggerUI(c => c.SwaggerEndpoint("/swagger/v1/swagger.json", "UniVerse API v1"));
|
{
|
||||||
|
c.RouteTemplate = "api/docs/{documentName}/swagger.json";
|
||||||
|
});
|
||||||
|
|
||||||
|
app.UseSwaggerUI(c =>
|
||||||
|
{
|
||||||
|
c.RoutePrefix = "api/docs";
|
||||||
|
c.SwaggerEndpoint("v1/swagger.json", "UniVerse API v1");
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
app.UseCors();
|
app.UseCors();
|
||||||
|
|||||||
@@ -4,7 +4,8 @@
|
|||||||
"http": {
|
"http": {
|
||||||
"commandName": "Project",
|
"commandName": "Project",
|
||||||
"dotnetRunMessages": true,
|
"dotnetRunMessages": true,
|
||||||
"launchBrowser": false,
|
"launchBrowser": true,
|
||||||
|
"launchUrl": "api/docs",
|
||||||
"applicationUrl": "http://localhost:5019",
|
"applicationUrl": "http://localhost:5019",
|
||||||
"environmentVariables": {
|
"environmentVariables": {
|
||||||
"ASPNETCORE_ENVIRONMENT": "Development"
|
"ASPNETCORE_ENVIRONMENT": "Development"
|
||||||
|
|||||||
Reference in New Issue
Block a user