Небольшой фикс
This commit is contained in:
parent
02459d03f8
commit
bc540909ed
@ -18,11 +18,13 @@ public class MainController : ControllerBase
|
||||
_publicDataService = publicDataService;
|
||||
}
|
||||
|
||||
[HttpGet("GetAllCity")]
|
||||
public async Task<IEnumerable<City>> GetAllCity()
|
||||
{
|
||||
return await _publicDataService.GetAllCity();
|
||||
}
|
||||
|
||||
[HttpGet("GetAllMoviesInCity/{cityName}")]
|
||||
public async Task<IEnumerable<Film>> GetAllMoviesInCityWithPuskinCard(string cityName)
|
||||
{
|
||||
return await _publicDataService.GetAllFilmsInCity(cityName);
|
||||
|
@ -21,7 +21,7 @@ builder.Services.AddEndpointsApiExplorer();
|
||||
builder.Services.AddSwaggerGen(c =>
|
||||
{
|
||||
c.IncludeXmlComments(Path.Combine(AppContext.BaseDirectory, "ApiDocumentation.xml"));
|
||||
c.SwaggerDoc("v1", new OpenApiInfo { Title = "Sistema Backend", Version = "v1" });
|
||||
c.SwaggerDoc("v1", new OpenApiInfo { Title = "Ficha Backend", Version = "v1" });
|
||||
});
|
||||
|
||||
// Add services to the container.
|
||||
|
@ -16,7 +16,8 @@
|
||||
"launchUrl": "swagger",
|
||||
"applicationUrl": "http://localhost:5242",
|
||||
"environmentVariables": {
|
||||
"ASPNETCORE_ENVIRONMENT": "Development"
|
||||
"ASPNETCORE_ENVIRONMENT": "Development",
|
||||
"CONNECTION_STRING": "sss"
|
||||
}
|
||||
},
|
||||
"https": {
|
||||
|
Loading…
x
Reference in New Issue
Block a user