Update build data and swagger path (#24)

Update '.build/deploy.sh'

Update 'src/InternshipSystem.Api/Startup.cs'
This commit is contained in:
Kacper Donat 2020-07-18 16:09:48 +02:00
parent f9e47194a8
commit 99c094390a
2 changed files with 3 additions and 3 deletions

View File

@ -2,8 +2,8 @@ BUILD_PATH=$1
cd $BUILD_PATH/src || exit 1
docker-build -f ./InternshipSystem.Api/Dockerfile -t internship.api .
docker build -f ./InternshipSystem.Api/Dockerfile -t internship.api .
cd $BUILD_PATH/.docker || exit 1
docker-compose up -d --force-recreate
docker-compose up -d --build --force-recreate

View File

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