feat: add email verification

This commit is contained in:
Tim
2025-06-30 17:53:13 +08:00
parent aa6d32e7dd
commit 39179c370e
5 changed files with 62 additions and 7 deletions

View File

@@ -0,0 +1,17 @@
package com.openisle.controller;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.RestControllerAdvice;
import java.util.Map;
@RestControllerAdvice
public class GlobalExceptionHandler {
@ExceptionHandler(Exception.class)
public ResponseEntity<?> handleException(Exception ex) {
return ResponseEntity.badRequest().body(Map.of("error", ex.getMessage()));
}
}