quick fix
This commit is contained in:
parent
1cd7cca2ca
commit
0c41375443
|
@ -1,20 +0,0 @@
|
|||
package com.baeldung.logoutredirects.controller;
|
||||
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
@RestController
|
||||
public class RestApiController {
|
||||
|
||||
@GetMapping("/login")
|
||||
public String login() {
|
||||
return "login";
|
||||
}
|
||||
|
||||
@PostMapping("/logout")
|
||||
public String logout() {
|
||||
return "redirect:/login";
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue