feat: add token validation api and auth module

This commit is contained in:
Tim
2025-07-05 13:34:47 +08:00
parent 3568e54984
commit 6bdc32ff05
4 changed files with 42 additions and 1 deletions

View File

@@ -63,6 +63,11 @@ public class AuthController {
}
}
@GetMapping("/check")
public ResponseEntity<?> checkToken() {
return ResponseEntity.ok(Map.of("valid", true));
}
@Data
private static class RegisterRequest {
private String username;