Skip to content

Commit 2ac066d

Browse files
committed
new: return status message from root url
1 parent f97b244 commit 2ac066d

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
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+
}

0 commit comments

Comments
 (0)