Update build data and swagger path #24

Merged
maxchil merged 4 commits from kadet-patch-1 into master 2020-07-18 16:50:41 +02:00
2 changed files with 2 additions and 2 deletions

View File

@ -6,6 +6,7 @@ services:
environment: environment:
CONNECTIONSTRINGS__INTERNSHIPDATABASE: "Host=db.postgres;Port=5432;Database=postgres;Username=postgres;Password=szwoniu" CONNECTIONSTRINGS__INTERNSHIPDATABASE: "Host=db.postgres;Port=5432;Database=postgres;Username=postgres;Password=szwoniu"
ASPNETCORE_ENVIRONMENT: Development ASPNETCORE_ENVIRONMENT: Development
APIPREFIX: /api
depends_on: depends_on:
- db.postgres - db.postgres
ports: ports:
@ -19,4 +20,3 @@ services:
PGDATA: /postgres PGDATA: /postgres
ports: ports:
- 5432:5432 - 5432:5432

View File

@ -42,7 +42,7 @@ namespace InternshipSystem.Api
app app
.UseSwagger() .UseSwagger()
.UseSwaggerUI(options => options.SwaggerEndpoint("/api/swagger/v1/swagger.json", "InternshipSystem Api")) .UseSwaggerUI(options => options.SwaggerEndpoint(Path.Join(Configuration.GetValue<string>("ApiPrefix"), "/swagger/v1/swagger.json"), "InternshipSystem Api"))
.UseHttpsRedirection() .UseHttpsRedirection()
.UseRouting() .UseRouting()
.UseAuthorization() .UseAuthorization()