File tree Expand file tree Collapse file tree 2 files changed +18
-5
lines changed
src/main/kotlin/org/gitanimals Expand file tree Collapse file tree 2 files changed +18
-5
lines changed Original file line number Diff line number Diff line change @@ -63,11 +63,11 @@ class AuctionController(
6363 @RequestParam(name = " sort-direction" , defaultValue = " DESC" ) sortDirection : String ,
6464 ): ProductsResponse {
6565 val products = productService.getProductHistories(
66- pageNumber,
67- personaType,
68- count,
69- orderType,
70- sortDirection,
66+ pageNumber = pageNumber ,
67+ personaType = personaType ,
68+ count = count ,
69+ orderType = orderType ,
70+ sortDirection = sortDirection ,
7171 )
7272
7373 return ProductsResponse .from(products)
Original file line number Diff line number Diff line change @@ -17,6 +17,19 @@ class Oauth2Controller(
1717 private val appleLoginFacade : AppleLoginFacade ,
1818) {
1919
20+ @GetMapping(" /logins/oauth/github/by-redirect-when-success/{redirectWhenSuccess}" )
21+ @ResponseStatus(HttpStatus .MOVED_PERMANENTLY )
22+ fun redirectToGithubWithPathVariables (
23+ @PathVariable(" redirectWhenSuccess" ) redirectWhenSuccess : RedirectWhenSuccess ,
24+ ): ResponseEntity <Unit > {
25+ return ResponseEntity .status(HttpStatus .MOVED_PERMANENTLY )
26+ .header(
27+ " Location" ,
28+ " https://github.com/login/oauth/authorize?client_id=$githubClientId &redirect_uri=${redirectWhenSuccess.callbackUri} "
29+ )
30+ .build()
31+ }
32+
2033 @GetMapping(" /logins/oauth/github" )
2134 @ResponseStatus(HttpStatus .MOVED_PERMANENTLY )
2235 fun redirectToGithub (
You can’t perform that action at this time.
0 commit comments