mirror of
https://github.com/nagisa77/OpenIsle.git
synced 2026-02-23 22:50:51 +08:00
Initialize Spring Boot backend with JWT auth
This commit is contained in:
12
src/main/java/com/openisle/controller/HelloController.java
Normal file
12
src/main/java/com/openisle/controller/HelloController.java
Normal file
@@ -0,0 +1,12 @@
|
||||
package com.openisle.controller;
|
||||
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
@RestController
|
||||
public class HelloController {
|
||||
@GetMapping("/api/hello")
|
||||
public String hello() {
|
||||
return "Hello, Authenticated User";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user