src/main/java/com/webcheckers/ui/GetSignoutRoute.java
/**
     * handler function to handle the response and request and render the page
     * @param request: request from the client
     * @param response: response sent to the client
     * @return Rendered page
     * @throws Exception
     */
handler function to handle the response and request and render the page
@param request: request from the client
@param response: response sent to the client
@return Rendered page
@throws Exception
handler function to handle the response and request and render the page @param request : request from the client @param response : response sent to the client @return Rendered page @throws Exception
@Override
    public Object handle(Request request, Response response) throws Exception {
        final Session httpSession = request.session();
        Player currentPlayer = request.session().attribute("user");
        lobby.getInLobbyPlayers().remove(currentPlayer);
        lobby.getInGame().remove(currentPlayer);
        request.session().attribute("user", null);
        response.redirect("/");
        return engine.render(new ModelAndView(null, "home.ftl"));
    }
@ Override public Object handle ( Request request , Response response ) throws Exception { final Session httpSession = request . session ( ) ; Player currentPlayer = request . session ( ) . attribute ( "user" ) ; lobby . getInLobbyPlayers ( ) . remove ( currentPlayer ) ; lobby . getInGame ( ) . remove ( currentPlayer ) ; request . session ( ) . attribute ( "user" , null ) ; response . redirect ( "/" ) ; return engine . render ( new ModelAndView ( null , "home.ftl" ) ) ; }
handler function to handle the response and request and render the page
 @param request: request from the client
 @param response: response sent to the client
 @return Rendered page
 @throws Exception
handler function to handle the response and request and render the page @param request : request from the client @param response : response sent to the client @return Rendered page @throws Exception