I have a spring boot application with the following context path:
server.servlet.context-path:/api
I need to write a rest controller that's mapped to http://localhost:8080/logout instead of http://localhost:8080/api/logout
Is there a way to achieve this? changing the "server.servelt.context-path" value is not an option.
this is what I tried and didn't work:
@GetMapping(value="../signout"){
public void logout(){
}