File tree 3 files changed +42
-2
lines changed
server/api-service/lowcoder-server/src/main
java/org/lowcoder/api/framework
3 files changed +42
-2
lines changed Original file line number Diff line number Diff line change
1
+ package org .lowcoder .api .framework ;
2
+
3
+ import lombok .RequiredArgsConstructor ;
4
+ import org .lowcoder .api .framework .view .ResponseView ;
5
+ import org .springframework .http .MediaType ;
6
+ import org .springframework .web .bind .annotation .GetMapping ;
7
+ import org .springframework .web .bind .annotation .RestController ;
8
+ import reactor .core .publisher .Mono ;
9
+
10
+ @ RequiredArgsConstructor
11
+ @ RestController
12
+ public class IndexController {
13
+
14
+ @ GetMapping (value = "/" , consumes = {MediaType .ALL_VALUE })
15
+ public Mono <ResponseView <Void >> index () {
16
+ return Mono .just (ResponseView .error (ResponseView .SUCCESS , "Lowcoder API is up and runnig" ));
17
+ }
18
+ }
Original file line number Diff line number Diff line change @@ -120,6 +120,7 @@ SecurityWebFilterChain securityWebFilterChain(ServerHttpSecurity http) {
120
120
ServerWebExchangeMatchers .pathMatchers (HttpMethod .GET , NewUrl .CONFIG_URL ),
121
121
ServerWebExchangeMatchers .pathMatchers (HttpMethod .GET , NewUrl .CONFIG_URL + "/deploymentId" ),
122
122
ServerWebExchangeMatchers .pathMatchers (HttpMethod .HEAD , NewUrl .STATE_URL + "/healthCheck" ),
123
+ ServerWebExchangeMatchers .pathMatchers (HttpMethod .GET , NewUrl .PREFIX + "/status/**" ),
123
124
ServerWebExchangeMatchers .pathMatchers (HttpMethod .GET , NewUrl .APPLICATION_URL + "/*/view" ),
124
125
ServerWebExchangeMatchers .pathMatchers (HttpMethod .GET , NewUrl .APPLICATION_URL + "/*/view_marketplace" ),
125
126
ServerWebExchangeMatchers .pathMatchers (HttpMethod .GET , NewUrl .APPLICATION_URL + "/marketplace-apps" ), // marketplace apps
Original file line number Diff line number Diff line change @@ -79,7 +79,7 @@ common:
79
79
plugin-dirs :
80
80
- ${LOWCODER_PLUGINS_DIR:../plugins}
81
81
super-admin :
82
- username : ${LOWCODER_SUPERUSER_USERNAME:test@lowcoder.org }
82
+ username : ${LOWCODER_SUPERUSER_USERNAME:admin@localhost }
83
83
password : ${LOWCODER_SUPERUSER_PASSWORD:}
84
84
marketplace :
85
85
private-mode : ${LOWCODER_MARKETPLACE_PRIVATE_MODE:true}
@@ -98,6 +98,27 @@ springdoc:
98
98
paths-to-exclude : /api/v1/**
99
99
100
100
management :
101
+ endpoints :
102
+ enabled-by-default : false
103
+ web :
104
+ base-path : " /api/status"
105
+ exposure :
106
+ include : " health,metrics,prometheus"
107
+ endpoint :
108
+ health :
109
+ show-details : never
110
+ show-components : always
111
+ enabled : true
112
+ metrics :
113
+ enabled : true
114
+ prometheus :
115
+ enabled : true
101
116
health :
102
117
mail :
103
- enabled : false
118
+ enabled : false
119
+ db :
120
+ enabled : true
121
+ redis :
122
+ enabled : true
123
+ diskspace :
124
+ enabled : false
You can’t perform that action at this time.
0 commit comments