mirror of
https://github.com/Athou/commafeed.git
synced 2026-03-21 21:37:29 +00:00
welcome page
This commit is contained in:
@@ -39,11 +39,12 @@ public class ServerREST {
|
||||
@GET
|
||||
@UnitOfWork
|
||||
@ApiOperation(value = "Get server infos", notes = "Get server infos", response = ServerInfo.class)
|
||||
public Response get(@SecurityCheck User user) {
|
||||
public Response get() {
|
||||
ServerInfo infos = new ServerInfo();
|
||||
infos.setAnnouncement(config.getApplicationSettings().getAnnouncement());
|
||||
infos.setVersion(applicationPropertiesService.getVersion());
|
||||
infos.setGitCommit(applicationPropertiesService.getGitCommit());
|
||||
infos.setAllowRegistrations(config.getApplicationSettings().isAllowRegistrations());
|
||||
return Response.ok(infos).build();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user