From bbc7f4f8706be5448a240ce24d93856bbfec0c7a Mon Sep 17 00:00:00 2001 From: gsd Date: Tue, 24 Oct 2023 22:45:17 +0300 Subject: [PATCH] =?UTF-8?q?=D1=85=D0=B5=D1=85=D0=B5=20=D0=B3=D0=BE=D0=B2?= =?UTF-8?q?=D0=BD=D1=8F=D0=BA=202?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/app/controllers/admin/DBController.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/main/java/app/controllers/admin/DBController.java b/src/main/java/app/controllers/admin/DBController.java index 8ad918d..dc80ccb 100644 --- a/src/main/java/app/controllers/admin/DBController.java +++ b/src/main/java/app/controllers/admin/DBController.java @@ -7,6 +7,7 @@ import app.services.db.DetectService; import app.utils.SteamIDConverter; import jakarta.servlet.http.HttpServletRequest; import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.http.ResponseEntity; import org.springframework.web.bind.annotation.*; import java.util.List; @@ -29,4 +30,12 @@ public class DBController { @RequestParam(value = "steam64", required = false, defaultValue = "") String steam64) { return detectService.getAccountsPerSteamID(SteamIDConverter.getSteamID(steam64)).stream().map(s -> s.community_url).toList(); } + + @RequestMapping(value = "/alt", method = RequestMethod.OPTIONS) + @CheckWebAccess + @CheckPermitionFlag(flag = "d") + public ResponseEntity check4getAltAccountPerAccount(HttpServletRequest request) { + return ResponseEntity.ok().build(); + } + }