Files
OpenIsle/src/main/java/com/openisle/controller/HelloController.java
2025-06-30 17:53:13 +08:00

18 lines
478 B
Java

package com.openisle.controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.Map;
@RestController
public class HelloController {
/**
* curl http://localhost:8080/api/hello \
* -H "Authorization: Bearer <jwt-token>"
*/
@GetMapping("/api/hello")
public Map<String, String> hello() {
return Map.of("message", "Hello, Authenticated User");
}
}