Skip to content

Commit bb5a92e

Browse files
committed
chore: 优化健康监测接口响应信息
1 parent 6c4e252 commit bb5a92e

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

continew-admin-webapi/src/main/java/top/continew/admin/ContiNewAdminApplication.java

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
import top.continew.starter.core.autoconfigure.project.ProjectProperties;
3737
import top.continew.starter.extension.crud.annotation.EnableCrudRestController;
3838
import top.continew.starter.web.annotation.EnableGlobalResponse;
39+
import top.continew.starter.web.model.R;
3940

4041
/**
4142
* 启动程序
@@ -60,16 +61,11 @@ public static void main(String[] args) {
6061
SpringApplication.run(ContiNewAdminApplication.class, args);
6162
}
6263

63-
/**
64-
* 访问首页提示
65-
*
66-
* @return /
67-
*/
6864
@Hidden
6965
@SaIgnore
7066
@GetMapping("/")
71-
public String index() {
72-
return "%s service started successfully.".formatted(projectProperties.getName());
67+
public R index() {
68+
return R.ok("%s service started successfully.".formatted(projectProperties.getName()), null);
7369
}
7470

7571
@Override

0 commit comments

Comments
 (0)