Skip to content

Commit

Permalink
Ticket ## : Add gitter + fix swagger edp
Browse files Browse the repository at this point in the history
  • Loading branch information
thabart committed Sep 16, 2020
1 parent 6747f4b commit b23db77
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ It supports most of the concepts introduced by the Case Management Model And Not
[![Build status](https://ci.appveyor.com/api/projects/status/q2ra83o0rcla41oc?svg=true)](https://ci.appveyor.com/project/simpleidserver/casemanagement)
[![MyGet (dev)](https://img.shields.io/myget/advance-ict/v/CaseManagement.CMMN.svg)](http://myget.org/gallery/advance-ict)
[![Documentation Status](https://readthedocs.org/projects/casemanagement/badge/?version=latest)](https://casemanagement.readthedocs.io/en/latest/)
[![Join the chat at https://gitter.im/simpleidserver/CaseManagement](https://badges.gitter.im/simpleidserver/CaseManagement.svg)](https://gitter.im/simpleidserver/CaseManagement?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)

For project documentation, please visit [readthedocs](https://casemanagement.readthedocs.io/en/latest/).

Expand Down
2 changes: 1 addition & 1 deletion conf/casemanagement.service
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Description=Case Management API
After=network.target

[Service]
ExecStart=/usr/bin/dotnet /home/ftpuser/src/build/results/services/CaseManagementApi/CaseManagement.CMMN.Host.dll --server.urls="http://*:60005"
ExecStart=/usr/bin/dotnet /home/ftpuser/src/build/results/services/CaseManagementApi/CaseManagement.CMMN.Host.dll --pathBase=/casemanagementapi --server.urls="http://*:60005"
KillMode=process
TimeoutStopSec=5s
Restart=always
Expand Down
14 changes: 11 additions & 3 deletions src/CaseManagement.CMMN.Host/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -94,16 +94,24 @@ public void ConfigureServices(IServiceCollection services)

public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerFactory loggerFactory)
{
var pathBase = string.Empty;
if (_configuration.GetChildren().Any(i => i.Key == "pathBase"))
{
app.UsePathBase(_configuration["pathBase"]);
pathBase = _configuration["pathBase"];
app.UsePathBase(pathBase);
}

app.UseForwardedHeaders();
app.UseSwagger();
app.UseSwaggerUI(c =>
{
c.SwaggerEndpoint("/swagger/v1/swagger.json", "CaseManagement API V1");
{
var edp = "/swagger/v1/swagger.json";
if (!string.IsNullOrWhiteSpace(pathBase))
{
edp = $"{pathBase}{edp}";
}
c.SwaggerEndpoint(edp, "CaseManagement API V1");
});
app.UseAuthentication();
app.UseCors("AllowAll");
Expand Down

0 comments on commit b23db77

Please sign in to comment.