File tree Expand file tree Collapse file tree 3 files changed +13
-4
lines changed
src/CaseManagement.CMMN.Host Expand file tree Collapse file tree 3 files changed +13
-4
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ It supports most of the concepts introduced by the Case Management Model And Not
16
16
[ ![ Build status] ( https://ci.appveyor.com/api/projects/status/q2ra83o0rcla41oc?svg=true )] ( https://ci.appveyor.com/project/simpleidserver/casemanagement )
17
17
[ ![ MyGet (dev)] ( https://img.shields.io/myget/advance-ict/v/CaseManagement.CMMN.svg )] ( http://myget.org/gallery/advance-ict )
18
18
[ ![ Documentation Status] ( https://readthedocs.org/projects/casemanagement/badge/?version=latest )] ( https://casemanagement.readthedocs.io/en/latest/ )
19
+ [ ![ 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 )
19
20
20
21
For project documentation, please visit [ readthedocs] ( https://casemanagement.readthedocs.io/en/latest/ ) .
21
22
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ Description=Case Management API
3
3
After =network.target
4
4
5
5
[Service]
6
- ExecStart =/usr/bin/dotnet /home/ftpuser/src/build/results/services/CaseManagementApi/CaseManagement.CMMN.Host.dll --server.urls ="http://*:60005"
6
+ ExecStart =/usr/bin/dotnet /home/ftpuser/src/build/results/services/CaseManagementApi/CaseManagement.CMMN.Host.dll --pathBase =/casemanagementapi -- server.urls ="http://*:60005"
7
7
KillMode =process
8
8
TimeoutStopSec =5s
9
9
Restart =always
Original file line number Diff line number Diff line change @@ -94,16 +94,24 @@ public void ConfigureServices(IServiceCollection services)
94
94
95
95
public void Configure ( IApplicationBuilder app , IHostingEnvironment env , ILoggerFactory loggerFactory )
96
96
{
97
+ var pathBase = string . Empty ;
97
98
if ( _configuration . GetChildren ( ) . Any ( i => i . Key == "pathBase" ) )
98
99
{
99
- app . UsePathBase ( _configuration [ "pathBase" ] ) ;
100
+ pathBase = _configuration [ "pathBase" ] ;
101
+ app . UsePathBase ( pathBase ) ;
100
102
}
101
103
102
104
app . UseForwardedHeaders ( ) ;
103
105
app . UseSwagger ( ) ;
104
106
app . UseSwaggerUI ( c =>
105
- {
106
- c . SwaggerEndpoint ( "/swagger/v1/swagger.json" , "CaseManagement API V1" ) ;
107
+ {
108
+ var edp = "/swagger/v1/swagger.json" ;
109
+ if ( ! string . IsNullOrWhiteSpace ( pathBase ) )
110
+ {
111
+ edp = $ "{ pathBase } { edp } ";
112
+ }
113
+
114
+ c . SwaggerEndpoint ( edp , "CaseManagement API V1" ) ;
107
115
} ) ;
108
116
app . UseAuthentication ( ) ;
109
117
app . UseCors ( "AllowAll" ) ;
You can’t perform that action at this time.
0 commit comments