Skip to content

Commit

Permalink
Temp
Browse files Browse the repository at this point in the history
  • Loading branch information
BYEONGRYEOL committed Jun 5, 2024
1 parent 2640a3a commit fb58d98
Showing 1 changed file with 9 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,16 @@

import static com.gt.genti.other.util.ApiUtils.*;

import java.util.List;
import java.util.Map;

import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.security.core.annotation.AuthenticationPrincipal;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;

import com.gt.genti.domain.enums.UserRole;
import com.gt.genti.error.ErrorCode;
import com.gt.genti.error.ExpectedException;
import com.gt.genti.fortest.TestJwtResponseDto;
import com.gt.genti.other.auth.UserDetailsImpl;
import com.gt.genti.other.security.JwtTokenProvider;

import jakarta.websocket.server.PathParam;
Expand Down Expand Up @@ -56,15 +54,13 @@ public String oauth() {
return "oauth2";
}

@GetMapping("/login/success")
public String successRedirect() {
return "redirecttest";
}

// @GetMapping("/error")
// public ResponseEntity<String> error() {
//
// return new ResponseEntity<>("error", HttpStatus.CONFLICT);
// @GetMapping("/login/success")
// public String successRedirect() {
// return "redirecttest";
// }

@GetMapping("/logout")
public ResponseEntity<ApiResult<Boolean>> logout(@AuthenticationPrincipal UserDetailsImpl userDetails) {
return null;
}
}

0 comments on commit fb58d98

Please sign in to comment.