Skip to content

Commit

Permalink
add a hello endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
Pil0tXia committed Mar 18, 2024
1 parent c77203f commit 254e19d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@

package org.apache.eventmesh.dashboard.console.controller;

import org.apache.eventmesh.dashboard.common.dto.Result;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

Expand All @@ -30,4 +32,8 @@ public Object druidStat() {
return DruidStatManagerFacade.getInstance().getDataSourceStatDataList();
}

@GetMapping("/hello")
public Result<String> hello() {
return Result.success("Hello, EventMesh Dashboard!");
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -69,5 +69,4 @@ public Result<List<SubscriptionInfo>> listSubscriptions(
@RequestParam(name = "group", defaultValue = "") String group) {
return Result.success(subscriptionCore.retrieveConfigs(page, size, dataId, group));
}

}

0 comments on commit 254e19d

Please sign in to comment.