Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
new: return status message from root url
  • Loading branch information
ludomikula committed May 26, 2024
commit 2ac066df96c91ba2483a48aa0a7e87c507e5758f
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
package org.lowcoder.api.framework;

import lombok.RequiredArgsConstructor;
import org.lowcoder.api.framework.view.ResponseView;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import reactor.core.publisher.Mono;

@RequiredArgsConstructor
@RestController
public class IndexController {

@GetMapping(value = "/", consumes = {MediaType.ALL_VALUE})
public Mono<ResponseView<Void>> index() {
return Mono.just(ResponseView.error(ResponseView.SUCCESS, "Lowcoder API is up and runnig"));
}
}