Skip to content

Commit 6b1be52

Browse files
committed
#1453: Remove client secret from /home api
1 parent 8190bea commit 6b1be52

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

server/api-service/lowcoder-server/src/main/java/org/lowcoder/api/application/ApplicationEndpoints.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package org.lowcoder.api.application;
22

33
import com.fasterxml.jackson.annotation.JsonProperty;
4+
import com.fasterxml.jackson.annotation.JsonView;
45
import io.swagger.v3.oas.annotations.Operation;
56
import jakarta.annotation.Nullable;
67
import org.apache.commons.lang3.BooleanUtils;
@@ -12,6 +13,7 @@
1213
import org.lowcoder.domain.application.model.ApplicationStatus;
1314
import org.lowcoder.infra.constant.NewUrl;
1415
import org.lowcoder.infra.constant.Url;
16+
import org.lowcoder.sdk.config.JsonViews;
1517
import org.springframework.web.bind.annotation.*;
1618
import reactor.core.publisher.Mono;
1719

@@ -156,6 +158,7 @@ public Mono<ResponseView<Boolean>> updateEditState(@PathVariable String applicat
156158
description = "Retrieve the first displayed Lowcoder Application for an authenticated or impersonated user."
157159
)
158160
@GetMapping("/home")
161+
@JsonView(JsonViews.Public.class)
159162
public Mono<ResponseView<UserHomepageView>> getUserHomePage(@RequestParam(required = false, defaultValue = "0") int applicationType);
160163

161164
@Operation(

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy