quick fix

This commit is contained in:
azhwani 2020-08-10 13:58:50 +01:00
parent 1cd7cca2ca
commit 0c41375443
1 changed files with 0 additions and 20 deletions

View File

@ -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";
}
}