init:wq
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
/*
|
||||
package ru.copperside.controller;
|
||||
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.springframework.http.ResponseEntity;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import ru.copperside.model.authinfo.AuthInfo;
|
||||
import ru.copperside.service.AuthInfoService;
|
||||
|
||||
@RestController
|
||||
@RequestMapping("/api/authinfo")
|
||||
@RequiredArgsConstructor
|
||||
public class AuthInfoController {
|
||||
private final AuthInfoService service;
|
||||
|
||||
// Пример: GET /api/authinfo/user123?type=Secret
|
||||
@GetMapping("/{dataId}")
|
||||
public ResponseEntity<AuthInfo> getByDataIdAndType(
|
||||
@PathVariable String dataId
|
||||
) {
|
||||
return ResponseEntity.ok(service.getByDataIdAndType(dataId));
|
||||
}
|
||||
}
|
||||
*/
|
||||
Reference in New Issue
Block a user